VirtualBox

儲存庫 vbox 的更動 34729


忽略:
時間撮記:
2010-12-6 上午10:44:21 (14 年 以前)
作者:
vboxsync
訊息:

Windows Guest Additions installer: Set flag for a needed reboot after uninstallation to prevent immediately installation with still in-use drivers that might fail.

位置:
trunk/src/VBox/Additions/WINNT/Installer
檔案:
修改 2 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditions.nsi

    r34677 r34729  
    11061106  ${EndIf}
    11071107
     1108  ; Is a reboot needed first in order to (re-)install the Guest Additions?
     1109  Call IsRebootNeeded
     1110  Pop $0
     1111  ${If} $0 == "1"
     1112    MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 $(VBOX_REBOOT_REQUIRED) /SD IDNO IDNO +2
     1113      Reboot ; IDYES
     1114      Abort  ; IDNO
     1115  ${EndIf}
     1116
    11081117  ; Only uninstall?
    11091118  ${If} $g_bUninstall == "true"
     
    11671176  MessageBox MB_ICONINFORMATION|MB_OK $(VBOX_UNINST_SUCCESS) /SD IDOK
    11681177
     1178  ; Prevent the installer from running again without telling the user
     1179  ; to reboot the OS first. This should be done in case of still running drivers
     1180  ; after uninstallation
     1181  Push 1
     1182  Call SetRebootNeeded
     1183
    11691184FunctionEnd
    11701185
     
    12331248restart:
    12341249
    1235   DetailPrint "Rebooting ..."
     1250  DetailPrint "Restarting computer ..."
    12361251  Reboot
    12371252
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsCommon.nsh

    r34677 r34729  
    231231!insertmacro CheckArchitecture "un."
    232232
     233!macro IsRebootNeeded un
     234Function ${un}IsRebootNeeded
     235
     236  Push $0
     237  ReadRegDWORD $0 HKLM "Software\Microsoft\Windows\CurrentVersion\RunOnce" "VBoxGuestAdditionsRebootNeeded"
     238  Push $0
     239
     240FunctionEnd
     241!macroend
     242!insertmacro IsRebootNeeded ""
     243!insertmacro IsRebootNeeded "un."
     244
     245!macro SetRebootNeeded un
     246Function ${un}SetRebootNeeded
     247
     248  Pop $0
     249  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\RunOnce" "VBoxGuestAdditionsRebootNeeded" $0
     250
     251FunctionEnd
     252!macroend
     253!insertmacro SetRebootNeeded ""
     254!insertmacro SetRebootNeeded "un."
     255
    233256!macro GetWindowsVer un
    234257Function ${un}GetWindowsVer
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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