Mercurial > mxe-octave
comparison tools/makeinst-script.sh.in @ 4845:4b11bbe7c8ff
nsis-installer: provide command line opyions for options page (Bug #54766)
* tools/makeinst-script.sh.in: get command options if any and uncheck checkboxes if 0
author | John Donoghue |
---|---|
date | Wed, 03 Oct 2018 08:31:07 -0400 |
parents | adc0217b36c0 |
children | 1c251625c3cf |
comparison
equal
deleted
inserted
replaced
4844:17505928f934 | 4845:4b11bbe7c8ff |
---|---|
106 ; additional logic | 106 ; additional logic |
107 !include LogicLib.nsh | 107 !include LogicLib.nsh |
108 ; File funcs | 108 ; File funcs |
109 !include FileFunc.nsh | 109 !include FileFunc.nsh |
110 | 110 |
111 | |
112 !define MUI_ABORTWARNING | 111 !define MUI_ABORTWARNING |
113 !define MUI_UNABORTWARNING | 112 !define MUI_UNABORTWARNING |
114 !define MUI_HEADERIMAGE | 113 !define MUI_HEADERIMAGE |
115 | 114 |
116 ; Theme | 115 ; Theme |
220 ; set default options | 219 ; set default options |
221 StrCpy \$InstallAllUsers \${BST_CHECKED} | 220 StrCpy \$InstallAllUsers \${BST_CHECKED} |
222 StrCpy \$InstallShortcuts \${BST_CHECKED} | 221 StrCpy \$InstallShortcuts \${BST_CHECKED} |
223 StrCpy \$RegisterOctaveFileType \${BST_CHECKED} | 222 StrCpy \$RegisterOctaveFileType \${BST_CHECKED} |
224 StrCpy \$InstallBlasLib 0 | 223 StrCpy \$InstallBlasLib 0 |
224 | |
225 ; process cmand line options | |
226 \${GetParameters} \$R0 | |
227 ClearErrors | |
228 \${GetOptions} "\$R0" "/REGISTER_FILE_TYPES=" \$0 | |
229 IfErrors no_register_opt | |
230 \${If} \$0 == 0 | |
231 StrCpy \$RegisterOctaveFileType \${BST_UNCHECKED} | |
232 \${EndIf} | |
233 no_register_opt: | |
234 ClearErrors | |
235 \${GetOptions} "\$R0" "/INSTALL_SHORTCUTS=" \$0 | |
236 IfErrors no_shortcuts_opt | |
237 \${If} \$0 == 0 | |
238 StrCpy \$InstallShortcuts \${BST_UNCHECKED} | |
239 \${EndIf} | |
240 no_shortcuts_opt: | |
241 ClearErrors | |
242 \${GetOptions} "\$R0" "/INSTALL_ALL_USERS=" \$0 | |
243 IfErrors no_all_users_opt | |
244 \${If} \$0 == 0 | |
245 StrCpy \$InstallAllUsers \${BST_UNCHECKED} | |
246 \${EndIf} | |
247 no_all_users_opt: | |
248 ClearErrors | |
225 | 249 |
226 Call CheckWinVer | 250 Call CheckWinVer |
227 Call CheckCurrVersion | 251 Call CheckCurrVersion |
228 \${If} @ENABLE_JAVA@ == yes | 252 \${If} @ENABLE_JAVA@ == yes |
229 Call CheckJRE | 253 Call CheckJRE |