2005-06-16 10:51:57 +00:00
|
|
|
|
;--------------------------------
|
|
|
|
|
|
|
|
|
|
!macro GetFileExtProg ProgPath AppExe Extension
|
|
|
|
|
|
|
|
|
|
ReadRegStr ${AppExe} HKCU \
|
|
|
|
|
"Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\${Extension}\OpenWithList" \
|
|
|
|
|
"a"
|
|
|
|
|
${if} ${AppExe} != ""
|
|
|
|
|
ReadRegStr ${ProgPath} HKLM \
|
|
|
|
|
"Software\Microsoft\Windows\CurrentVersion\App Paths\${AppExe}" "Path"
|
|
|
|
|
;remove the "\" at the end
|
|
|
|
|
StrCpy ${ProgPath} ${ProgPath} -1
|
|
|
|
|
${endif}
|
|
|
|
|
|
|
|
|
|
!macroend
|
|
|
|
|
|
|
|
|
|
;--------------------------------
|
|
|
|
|
|
2005-06-15 11:49:24 +00:00
|
|
|
|
!macro FileCheck Result FileName FilePath
|
|
|
|
|
Push $0
|
|
|
|
|
Push $1
|
|
|
|
|
StrCpy $0 ""
|
|
|
|
|
StrCpy $1 ""
|
|
|
|
|
|
|
|
|
|
FileOpen $0 "${Filepath}\${FileName}" r
|
|
|
|
|
|
|
|
|
|
${if} $0 = ""
|
|
|
|
|
StrCpy $1 "False"
|
|
|
|
|
${Else}
|
|
|
|
|
StrCpy $1 "True"
|
|
|
|
|
${endif}
|
|
|
|
|
|
|
|
|
|
FileClose $0
|
|
|
|
|
StrCpy ${Result} $1
|
|
|
|
|
|
|
|
|
|
Pop $1
|
|
|
|
|
Pop $0
|
|
|
|
|
!macroend
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
!macro TranslateLangCode LangNme LangISOCode
|
|
|
|
|
|
|
|
|
|
${if} ${LangISOCode} = 1030
|
|
|
|
|
StrCpy ${LangNme} "Dansk"
|
|
|
|
|
${endif}
|
|
|
|
|
|
|
|
|
|
${if} ${LangISOCode} = 1031
|
|
|
|
|
StrCpy ${LangNme} "Deutsch"
|
|
|
|
|
${endif}
|
|
|
|
|
|
|
|
|
|
${if} ${LangISOCode} = 1033
|
|
|
|
|
StrCpy ${LangNme} "English"
|
|
|
|
|
${endif}
|
|
|
|
|
|
|
|
|
|
${if} ${LangISOCode} = 1034
|
|
|
|
|
StrCpy ${LangNme} "Espag<61>ol"
|
|
|
|
|
${endif}
|
|
|
|
|
|
|
|
|
|
${if} ${LangISOCode} = 1036
|
|
|
|
|
StrCpy ${LangNme} "Fran<61>ais"
|
|
|
|
|
${endif}
|
|
|
|
|
|
2005-06-16 10:51:57 +00:00
|
|
|
|
${if} ${LangISOCode} = 1040
|
|
|
|
|
StrCpy ${LangNme} "Italiano"
|
|
|
|
|
${endif}
|
|
|
|
|
|
2005-06-15 11:49:24 +00:00
|
|
|
|
${if} ${LangISOCode} = 1043
|
|
|
|
|
StrCpy ${LangNme} "Nederlands"
|
|
|
|
|
${endif}
|
|
|
|
|
|
2005-06-16 10:51:57 +00:00
|
|
|
|
${if} ${LangISOCode} = 1053
|
|
|
|
|
StrCpy ${LangNme} "Svenska"
|
|
|
|
|
${endif}
|
|
|
|
|
|
2005-06-15 11:49:24 +00:00
|
|
|
|
!macroend
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
!macro GetLangCode LangCde Name
|
|
|
|
|
|
|
|
|
|
${if} ${Name} == "Dansk"
|
|
|
|
|
StrCpy ${LangCde} "da_DK"
|
|
|
|
|
${endif}
|
|
|
|
|
|
|
|
|
|
${if} ${Name} == "Deutsch"
|
|
|
|
|
StrCpy ${LangCde} "de_DE"
|
|
|
|
|
${endif}
|
|
|
|
|
|
|
|
|
|
${if} ${Name} == "English"
|
|
|
|
|
StrCpy ${LangCde} "en_EN"
|
|
|
|
|
${endif}
|
|
|
|
|
|
|
|
|
|
${if} ${Name} == "Espag<61>ol"
|
|
|
|
|
StrCpy ${LangCde} "es_ES"
|
|
|
|
|
${endif}
|
|
|
|
|
|
|
|
|
|
${if} ${Name} == "Euskara"
|
|
|
|
|
StrCpy ${LangCde} "eu_EU"
|
|
|
|
|
${endif}
|
|
|
|
|
|
|
|
|
|
${if} ${Name} == "Fran<61>ais"
|
|
|
|
|
StrCpy ${LangCde} "fr_FR"
|
|
|
|
|
${endif}
|
|
|
|
|
|
|
|
|
|
${if} ${Name} == "Italiano"
|
|
|
|
|
StrCpy ${LangCde} "it_IT"
|
|
|
|
|
${endif}
|
|
|
|
|
|
|
|
|
|
${if} ${Name} == "Nederlands"
|
|
|
|
|
StrCpy ${LangCde} "nl_NL"
|
|
|
|
|
${endif}
|
|
|
|
|
|
|
|
|
|
${if} ${Name} == "Norsk"
|
|
|
|
|
StrCpy ${LangCde} "no_NO"
|
|
|
|
|
${endif}
|
|
|
|
|
|
|
|
|
|
${if} ${Name} == "Nynorsk"
|
|
|
|
|
StrCpy ${LangCde} "no_NY"
|
|
|
|
|
${endif}
|
|
|
|
|
|
|
|
|
|
${if} ${Name} == "Polski"
|
|
|
|
|
StrCpy ${LangCde} "pl_PL"
|
|
|
|
|
${endif}
|
|
|
|
|
|
|
|
|
|
${if} ${Name} == "Rom<6F>na"
|
|
|
|
|
StrCpy ${LangCde} "ro_RO"
|
|
|
|
|
${endif}
|
|
|
|
|
|
|
|
|
|
${if} ${Name} == "Russian"
|
|
|
|
|
StrCpy ${LangCde} "ru_RU"
|
|
|
|
|
${endif}
|
|
|
|
|
|
|
|
|
|
${if} ${Name} == "Slovensk<73>"
|
|
|
|
|
StrCpy ${LangCde} "sk_SK"
|
|
|
|
|
${endif}
|
|
|
|
|
|
|
|
|
|
${if} ${Name} == "Sloven<65>cina"
|
|
|
|
|
StrCpy ${LangCde} "sl_SI"
|
|
|
|
|
${endif}
|
|
|
|
|
|
|
|
|
|
${if} ${Name} == "Suomi"
|
|
|
|
|
StrCpy ${LangCde} "fi_FI"
|
|
|
|
|
${endif}
|
|
|
|
|
|
|
|
|
|
${if} ${Name} == "T<>rk<72>e"
|
|
|
|
|
StrCpy ${LangCde} "tr_TR"
|
|
|
|
|
${endif}
|
|
|
|
|
|
|
|
|
|
!macroend
|