Changeset 34745 in vbox
- Timestamp:
- Dec 6, 2010 1:03:51 PM (14 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Installer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditions.nsi
r34733 r34745 1001 1001 Function .onInstSuccess 1002 1002 1003 ; Prevent the installer from running again without telling the user1004 ; to reboot the OS first1005 Push 11006 Call SetRebootNeeded1007 1008 ; Tell VBoxTray to reflect installation success1009 1003 Push "${PRODUCT_NAME} successfully updated!" 1010 1004 Push 0 ; Message type = info … … 1112 1106 ${EndIf} 1113 1107 1114 ; Is a reboot needed first in order to (re-)install the Guest Additions?1115 Call IsRebootNeeded1116 Pop $01117 ${If} $0 == "1"1118 MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 $(VBOX_REBOOT_REQUIRED) /SD IDNO IDNO +21119 Reboot ; IDYES1120 Abort ; IDNO1121 ${EndIf}1122 1123 1108 ; Only uninstall? 1124 1109 ${If} $g_bUninstall == "true" … … 1182 1167 MessageBox MB_ICONINFORMATION|MB_OK $(VBOX_UNINST_SUCCESS) /SD IDOK 1183 1168 1184 ; Prevent the installer from running again without telling the user1185 ; to reboot the OS first. This should be done in case of still running drivers1186 ; after uninstallation1187 Push 11188 Call un.SetRebootNeeded1189 1190 1169 FunctionEnd 1191 1170 … … 1254 1233 restart: 1255 1234 1256 DetailPrint "Re starting computer..."1235 DetailPrint "Rebooting ..." 1257 1236 Reboot 1258 1237 -
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsCommon.nsh
r34742 r34745 231 231 !insertmacro CheckArchitecture "un." 232 232 233 !macro IsRebootNeeded un234 Function ${un}IsRebootNeeded235 236 Push $0237 ReadRegStr $0 HKLM "Software\Microsoft\Windows\CurrentVersion\RunOnce\VBoxGuestAdditions" "RebootNeeded"238 Push $0239 240 FunctionEnd241 !macroend242 !insertmacro IsRebootNeeded ""243 !insertmacro IsRebootNeeded "un."244 245 !macro SetRebootNeeded un246 Function ${un}SetRebootNeeded247 248 Pop $0249 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\RunOnce\VBoxGuestAdditions" "RebootNeeded" $0250 251 FunctionEnd252 !macroend253 !insertmacro SetRebootNeeded ""254 !insertmacro SetRebootNeeded "un."255 256 233 !macro GetWindowsVer un 257 234 Function ${un}GetWindowsVer
Note:
See TracChangeset
for help on using the changeset viewer.