diff options
author | Didier Raboud <odyx@debian.org> | 2011-02-04 15:13:10 +0100 |
---|---|---|
committer | Didier Raboud <odyx@debian.org> | 2011-02-04 15:57:31 +0100 |
commit | a2a26250cc25417050c08b2cc98d03afed9dedaf (patch) | |
tree | 8cfef10c502f408accbc8c56761f4bfae8479f93 /instSuccess.nsi | |
parent | 2456e53da33e02d8c00317248c58ffdf9c96efa9 (diff) |
Split main.nsi in multiple files
This should ease navigation in source and hacking.
Plus it does not add a single kibibyte to the resulting executable.
Diffstat (limited to 'instSuccess.nsi')
-rw-r--r-- | instSuccess.nsi | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/instSuccess.nsi b/instSuccess.nsi new file mode 100644 index 0000000..ae7c68d --- /dev/null +++ b/instSuccess.nsi @@ -0,0 +1,17 @@ +Function .onInstSuccess + Var /GLOBAL warning2 + ${If} $windows_boot_method == direct + StrCpy $warning2 $(warning2_direct) + ${Else} + StrCpy $warning2 $(warning2_reboot) + ${Endif} + MessageBox MB_OK '$(warning1)$warning2$(warning3)' + ${If} $windows_boot_method == direct + Exec '"$INSTDIR\loadlin.pif" linux $preseed_cmdline initrd=initrd.gz' + ${Else} + MessageBox MB_YESNO|MB_ICONQUESTION $(reboot_now) IDNO +2 + Reboot + ${Endif} +FunctionEnd + + |