forked from ffsup2/RawTherapee-Fork
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlanguagePack.nsi
126 lines (92 loc) · 4.45 KB
/
languagePack.nsi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
; RawTherapee Language Pack
;
; Installes just the language file in an existing RawTherapee installation.
;
;------------------------------------------------------------------------------
; Name, Outputfile and Version information
;------------------------------------------------------------------------------
; **** start edit section: please adapt below options per language pack release ****
; The name of the installer
Name "RT 2.4.1 - language Pack"
; The file to write
OutFile "RT241-langPack-20091018.exe"
LoadLanguageFile "${NSISDIR}\Contrib\Language files\English.nlf"
VIProductVersion "2.4.1.0"
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "RawTherapee Language Pack"
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "© Raw Therapee"
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "Language Pack RawTherapee 2.4.1"
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "2.4.1-2009-10-18"
VIAddVersionKey /LANG=${LANG_ENGLISH} "Comments" "Compatible also for RT2.4 and RT2.3"
; VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "Fake company"
; VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalTrademarks" "Test Application is a trademark of Fake company"
; **** end edit section: no changes needed per release below ****
;------------------------------------------------------------------------------
; Installation Directory, Dialog box for
;------------------------------------------------------------------------------
; The default installation directory
InstallDir "$PROGRAMFILES\Raw Therapee\languages"
DirText "The Language Pack has to be installed into the RawTherapee installation directory, into the language subdirectory." \
"RawTherapee Installation Directory" \
"" \
"Please select the installation Directory of RawTherapee:"
;PageEx directory
; DirVerify leave
; PageCallbacks "" "" dirLeave
;PageExEnd
; Registry key to check for directory (so if you install again, it will
; overwrite the old one automatically)
InstallDirRegKey HKCU "Software\Raw Therapee" ""
;------------------------------------------------------------------------------
; Installation Rights (Vista only)
;------------------------------------------------------------------------------
; Request application privileges for Windows Vista
RequestExecutionLevel admin
;------------------------------------------------------------------------------
; Pages:
;------------------------------------------------------------------------------
; Pages
;Page components
Page directory
Page instfiles
;UninstPage uninstConfirm
;UninstPage instfiles
;------------------------------------------------------------------------------
; Sections: stuff to be installed
;------------------------------------------------------------------------------
; The stuff to install
Section "RawTherapee Language Pack (required)"
SectionIn RO
ifFileExists $INSTDIR\languages\*.* 0 +3
SetOutPath $INSTDIR\languages
Goto +2
SetOutPath $INSTDIR
; Set output path to the installation directory.
;SetOutPath $INSTDIR
; Put file there
File "release\languages\*"
; Write the installation path into the registry
;WriteRegStr HKLM SOFTWARE\NSIS_Example2 "Install_Dir" "$INSTDIR"
; Write the uninstall keys for Windows
;WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Example2" "DisplayName" "NSIS Example2"
;WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Example2" "UninstallString" '"$INSTDIR\uninstall.exe"'
;WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Example2" "NoModify" 1
;WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Example2" "NoRepair" 1
;WriteUninstaller "uninstall.exe"
SectionEnd
;------------------------------------------------------------------------------
; Uninstaller: not needed here
;------------------------------------------------------------------------------
; Uninstaller
;Section "Uninstall"
; Remove registry keys
; DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Example2"
; DeleteRegKey HKLM SOFTWARE\NSIS_Example2
; Remove files and uninstaller
; Delete $INSTDIR\example2.nsi
; Delete $INSTDIR\uninstall.exe
; Remove shortcuts, if any
; Delete "$SMPROGRAMS\Example2\*.*"
; Remove directories used
; RMDir "$SMPROGRAMS\Example2"
; RMDir "$INSTDIR"
;SectionEnd