Mercurial > mxe-octave
diff 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 |
line wrap: on
line diff
--- a/tools/makeinst-script.sh.in Tue Oct 02 10:29:30 2018 -0400 +++ b/tools/makeinst-script.sh.in Wed Oct 03 08:31:07 2018 -0400 @@ -108,7 +108,6 @@ ; File funcs !include FileFunc.nsh - !define MUI_ABORTWARNING !define MUI_UNABORTWARNING !define MUI_HEADERIMAGE @@ -223,6 +222,31 @@ StrCpy \$RegisterOctaveFileType \${BST_CHECKED} StrCpy \$InstallBlasLib 0 + ; process cmand line options + \${GetParameters} \$R0 + ClearErrors + \${GetOptions} "\$R0" "/REGISTER_FILE_TYPES=" \$0 + IfErrors no_register_opt + \${If} \$0 == 0 + StrCpy \$RegisterOctaveFileType \${BST_UNCHECKED} + \${EndIf} +no_register_opt: + ClearErrors + \${GetOptions} "\$R0" "/INSTALL_SHORTCUTS=" \$0 + IfErrors no_shortcuts_opt + \${If} \$0 == 0 + StrCpy \$InstallShortcuts \${BST_UNCHECKED} + \${EndIf} +no_shortcuts_opt: + ClearErrors + \${GetOptions} "\$R0" "/INSTALL_ALL_USERS=" \$0 + IfErrors no_all_users_opt + \${If} \$0 == 0 + StrCpy \$InstallAllUsers \${BST_UNCHECKED} + \${EndIf} +no_all_users_opt: + ClearErrors + Call CheckWinVer Call CheckCurrVersion \${If} @ENABLE_JAVA@ == yes