1 !define PRODUCT_NAME
"PRODUCTNAMEPLACEHOLDER"
2 !define PRODUCT_VERSION
"PRODUCTVERSIONPLACEHOLDER"
3 !define PRODUCT_PUBLISHER
"PUBLISHERPLACEHOLDER"
4 !define PRODUCT_WEB_SITE
"WEBSITEPLACEHOLDER"
9 ; MUI 1.67 compatible ------
16 ;MessageBox MB_OK "$1"
22 ;MessageBox MB_OK "HELP: $2"
24 StrCmp $2 "ON" showhelp nohelp
26 MessageBox MB_OK|MB_ICONINFORMATION \
27 "DOWNLOADNAMEPLACEHOLDER options: $\n $\n \
28 /S : Silent installation $\n \
29 /D=<path> : NSIS installation directory (must be the last option!) $\n \
30 /EXTRACTONLY=ON : NSIS only extracts the PRODUCTNAMEPLACEHOLDER PRODUCTVERSIONPLACEHOLDER installation set $\n \
31 /INSTALLLOCATION=<path> : PRODUCTNAMEPLACEHOLDER PRODUCTVERSIONPLACEHOLDER installation directory $\n \
32 /POSTREMOVE=ON : Removes the unpacked installation set after PRODUCTNAMEPLACEHOLDER PRODUCTVERSIONPLACEHOLDER installation $\n \
33 /INSTALLJAVA=ON : Installs JRE located in sub directory java, if exists $\n \
34 /GUILEVEL=<guilevel> : Setting Windows Installer GUI level: qr, qb, qn, qf, ... $\n \
35 /PARAM1=$\"key=value
$\
" : Flexible parameter 1. Example: /PARAM1=$\"INSTALLLEVEL=
70$\
" $\n \
36 /PARAM2=$\"key=value
$\
" : Flexible parameter 2. $\n \
37 /PARAM3=$\"key=value
$\
" : Flexible parameter 3. $\n \
38 /HELP=ON : Shows this help $\n"
44 StrCmp $INSTDIR "" pathnotset pathset
47 IfSilent onInitSilent onInitNoSilent
50 StrCpy $INSTDIR "$TEMP\PRODUCTPATHPLACEHOLDER Installation Files"
54 StrCpy $INSTDIR "$DESKTOP\PRODUCTPATHPLACEHOLDER Installation Files"
62 Function GetParameters
73 ;Check for quote or space
74 StrCpy $R0 $CMDLINE $R2
83 StrCpy $R0 $CMDLINE 1 $R2
90 StrCpy $R0 $CMDLINE 1 $R2
92 StrCpy $R0 $CMDLINE "" $R2
126 StrCmp $5$7 '0' notfound
127 StrCmp $5 '' trimright
153 StrCmp $7 0 trimleft trimright
158 StrCmp $5 '' notfound
200 !define MUI_HEADERIMAGE
201 !define MUI_HEADERIMAGE_RIGHT
202 !define MUI_HEADERIMAGE_BITMAP_NOSTRETCH
203 !define MUI_HEADERIMAGE_BITMAP BANNERBMPPLACEHOLDER
204 !define MUI_WELCOMEFINISHPAGE_BITMAP WELCOMEBMPPLACEHOLDER
205 !define MUI_WELCOMEFINISHPAGE_BITMAP_NOSTRETCH
206 !define MUI_WELCOMEPAGE_TITLE_3LINES
207 !define MUI_ABORTWARNING
208 !define MUI_ICON
"SETUPICOPLACEHOLDER"
211 !insertmacro MUI_PAGE_WELCOME
212 !insertmacro MUI_PAGE_DIRECTORY
213 !insertmacro MUI_PAGE_INSTFILES
215 #231#!macro MUI_LANGUAGE_PACK LANGUAGE
217 #231# !verbose ${MUI_VERBOSE}
218 #231# !insertmacro MUI_INSERT
219 #231# LoadLanguageFile "NSISPATHPLACEHOLDER\${LANGUAGE}_pack.nlf"
220 #231# ;Set default language file for MUI and backup user setting
221 #231# !ifdef LANGFILE_DEFAULT
222 #231# !define MUI_LANGFILE_DEFAULT_TEMP "${LANGFILE_DEFAULT}"
223 #231# !undef LANGFILE_DEFAULT
225 #231# !define LANGFILE_DEFAULT "${NSISDIR}\Contrib\Language files\English.nsh"
226 #231# ;Include language file
227 #231# !insertmacro LANGFILE_INCLUDE "NSISPATHPLACEHOLDER\${LANGUAGE}_pack.nsh"
228 #231# ;Restore user setting for default language file
229 #231# !undef LANGFILE_DEFAULT
230 #231# !ifdef MUI_LANGFILE_DEFAULT_TEMP
231 #231# !define LANGFILE_DEFAULT "${MUI_LANGFILE_DEFAULT}"
233 #231# ;Add language to list of languages for selection dialog
234 #231# !ifndef MUI_LANGDLL_LANGUAGES
235 #231# !define MUI_LANGDLL_LANGUAGES "'${LANGFILE_${LANGUAGE}_NAME}' '${LANG_${LANGUAGE}}' "
236 #231# !define MUI_LANGDLL_LANGUAGES_CP "'${LANGFILE_${LANGUAGE}_NAME}' '${LANG_${LANGUAGE}}' '${LANG_${LANGUAGE}_CP}' "
238 #231# !ifdef MUI_LANGDLL_LANGUAGES_TEMP
239 #231# !undef MUI_LANGDLL_LANGUAGES_TEMP
241 #231# !define MUI_LANGDLL_LANGUAGES_TEMP "${MUI_LANGDLL_LANGUAGES}"
242 #231# !undef MUI_LANGDLL_LANGUAGES
243 #231# !ifdef MUI_LANGDLL_LANGUAGES_CP_TEMP
244 #231# !undef MUI_LANGDLL_LANGUAGES_CP_TEMP
246 #231# !define MUI_LANGDLL_LANGUAGES_CP_TEMP "${MUI_LANGDLL_LANGUAGES_CP}"
247 #231# !undef MUI_LANGDLL_LANGUAGES_CP
248 #231# !define MUI_LANGDLL_LANGUAGES "'${LANGFILE_${LANGUAGE}_NAME}' '${LANG_${LANGUAGE}}' ${MUI_LANGDLL_LANGUAGES_TEMP}"
249 #231# !define MUI_LANGDLL_LANGUAGES_CP "'${LANGFILE_${LANGUAGE}_NAME}' '${LANG_${LANGUAGE}}' '${LANG_${LANGUAGE}_CP}' ${MUI_LANGDLL_LANGUAGES_CP_TEMP}"
254 #204#!macro MUI_LANGUAGE_PACK LANGUAGE
256 #204# !verbose ${MUI_VERBOSE}
257 #204# !include "NSISPATHPLACEHOLDER\${LANGUAGE}_pack.nsh"
261 #204#!macro MUI_LANGUAGEFILE_PACK_BEGIN LANGUAGE
262 #204# !ifndef MUI_INSERT
263 #204# !define MUI_INSERT
264 #204# !insertmacro MUI_INSERT
266 #204# LoadLanguageFile "NSISPATHPLACEHOLDER\${LANGUAGE}_pack.nlf"
270 ALLLANGUAGESPLACEHOLDER
273 ;!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
277 Name "PRODUCTNAMEPLACEHOLDER PRODUCTVERSIONPLACEHOLDER"
278 OutFile "OUTPUTDIRPLACEHOLDER\DOWNLOADNAMEPLACEHOLDER"
279 ; InstallDir "$DESKTOP\PRODUCTNAMEPLACEHOLDER PRODUCTVERSIONPLACEHOLDER Installation Files"
280 ; ShowInstDetails show
282 Section "MainSection" SEC01
297 ;MessageBox MB_OK "EXTRACTONLY: $2"
299 StrCmp $2 "ON" onPostDone callsetup
303 Push "/INSTALLLOCATION="
306 ;MessageBox MB_OK "INSTALLLOCATION: $2"
308 StrCmp $2 "" installnotset installset
310 StrCpy $3 'INSTALLLOCATION="$2"'
317 ;MessageBox MB_OK "INSTALLJAVA: $2"
319 StrCmp $2 "ON" setinstalljava setdontinstalljava
329 StrCmp $2 "" dontsetguilevel setguilevel
338 ;MessageBox MB_OK "GUILEVEL: $7"
344 ;MessageBox MB_OK "PARAM1: $2"
346 StrCmp $2 "" param1notset param1set
356 ;MessageBox MB_OK "PARAM2: $2"
358 StrCmp $2 "" param2notset param2set
368 ;MessageBox MB_OK "PARAM3: $2"
370 StrCmp $2 "" param3notset param3set
375 IfSilent onPostSilent onPostNoSilent
382 ;MessageBox MB_OK "POSTREMOVE: $2"
384 StrCmp $2 "ON" postremovesilent nopostremovesilent
386 StrCmp $R9 "true" installjava1 dontinstalljava1
388 ExecWait '$INSTDIR\java\WINDOWSJAVAFILENAMEPLACEHOLDER /s /v"/qn REBOOT=Suppress"'
390 ExecWait "$INSTDIR\setup.exe -lang $LANGUAGE $3 $4 $5 $6 $7 -ignore_running" $0
395 StrCmp $R9 "true" installjava2 dontinstalljava2
397 ExecWait '$INSTDIR\java\WINDOWSJAVAFILENAMEPLACEHOLDER /s /v"/qn REBOOT=Suppress"'
399 ExecWait "$INSTDIR\setup.exe -lang $LANGUAGE $3 $4 $5 $6 $7 -ignore_running" $0
411 ;MessageBox MB_OK "POSTREMOVE: $2"
413 StrCmp $2 "ON" postremove nopostremove
415 Exec "$INSTDIR\setup.exe -lang $LANGUAGE $3 $4 $5 $6"
419 StrCmp $R9 "true" installjava3 dontinstalljava3
421 ExecWait '$INSTDIR\java\WINDOWSJAVAFILENAMEPLACEHOLDER /s /v"/qr REBOOT=Suppress"'
423 ExecWait "$INSTDIR\setup.exe -lang $LANGUAGE $3 $4 $5 $6" $0