VirtualBox

Changeset 34745 in vbox


Ignore:
Timestamp:
Dec 6, 2010 1:03:51 PM (14 years ago)
Author:
vboxsync
Message:

Windows Guest Additions installer: Back out reboot flag handling (r68547, r68538, r68537, r68536, r68534), needs more testing after beta.

Location:
trunk/src/VBox/Additions/WINNT/Installer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditions.nsi

    r34733 r34745  
    10011001Function .onInstSuccess
    10021002
    1003   ; Prevent the installer from running again without telling the user
    1004   ; to reboot the OS first
    1005   Push 1
    1006   Call SetRebootNeeded
    1007 
    1008   ; Tell VBoxTray to reflect installation success
    10091003  Push "${PRODUCT_NAME} successfully updated!"
    10101004  Push 0 ; Message type = info
     
    11121106  ${EndIf}
    11131107
    1114   ; Is a reboot needed first in order to (re-)install the Guest Additions?
    1115   Call IsRebootNeeded
    1116   Pop $0
    1117   ${If} $0 == "1"
    1118     MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 $(VBOX_REBOOT_REQUIRED) /SD IDNO IDNO +2
    1119       Reboot ; IDYES
    1120       Abort  ; IDNO
    1121   ${EndIf}
    1122 
    11231108  ; Only uninstall?
    11241109  ${If} $g_bUninstall == "true"
     
    11821167  MessageBox MB_ICONINFORMATION|MB_OK $(VBOX_UNINST_SUCCESS) /SD IDOK
    11831168
    1184   ; Prevent the installer from running again without telling the user
    1185   ; to reboot the OS first. This should be done in case of still running drivers
    1186   ; after uninstallation
    1187   Push 1
    1188   Call un.SetRebootNeeded
    1189 
    11901169FunctionEnd
    11911170
     
    12541233restart:
    12551234
    1256   DetailPrint "Restarting computer ..."
     1235  DetailPrint "Rebooting ..."
    12571236  Reboot
    12581237
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsCommon.nsh

    r34742 r34745  
    231231!insertmacro CheckArchitecture "un."
    232232
    233 !macro IsRebootNeeded un
    234 Function ${un}IsRebootNeeded
    235 
    236   Push $0
    237   ReadRegStr $0 HKLM "Software\Microsoft\Windows\CurrentVersion\RunOnce\VBoxGuestAdditions" "RebootNeeded"
    238   Push $0
    239 
    240 FunctionEnd
    241 !macroend
    242 !insertmacro IsRebootNeeded ""
    243 !insertmacro IsRebootNeeded "un."
    244 
    245 !macro SetRebootNeeded un
    246 Function ${un}SetRebootNeeded
    247 
    248   Pop $0
    249   WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\RunOnce\VBoxGuestAdditions" "RebootNeeded" $0
    250 
    251 FunctionEnd
    252 !macroend
    253 !insertmacro SetRebootNeeded ""
    254 !insertmacro SetRebootNeeded "un."
    255 
    256233!macro GetWindowsVer un
    257234Function ${un}GetWindowsVer
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette