Changeset 44417 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Jan 28, 2013 11:45:52 AM (12 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Installer
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsNT4.nsh
r40270 r44417 5 5 6 6 ; 7 ; Copyright (C) 2006-201 2Oracle Corporation7 ; Copyright (C) 2006-2013 Oracle Corporation 8 8 ; 9 9 ; This file is part of VirtualBox Open Source Edition (OSE), as … … 26 26 missingParms: 27 27 28 DetailPrint"Missing display parameters for NT4, setting default (640x480, 8 BPP) ..."28 ${LogVerbose} "Missing display parameters for NT4, setting default (640x480, 8 BPP) ..." 29 29 30 30 StrCpy $g_iScreenX '640' ; Default value … … 37 37 haveParms: 38 38 39 DetailPrint"Setting display parameters for NT4 ($g_iScreenXx$g_iScreenY, $g_iScreenBpp BPP) ..."39 ${LogVerbose} "Setting display parameters for NT4 ($g_iScreenXx$g_iScreenY, $g_iScreenBpp BPP) ..." 40 40 41 41 WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Services\vboxvideo\Device0" "DefaultSettings.BitsPerPel" $g_iScreenBpp … … 68 68 StrCmp $0 "" 0 exists 69 69 70 DetailPrint"Saving mouse driver info ..."70 ${LogVerbose} "Saving mouse driver info ..." 71 71 ReadRegStr $0 HKLM "SYSTEM\CurrentControlSet\Services\i8042prt" "ImagePath" 72 72 WriteRegStr HKLM "${PRODUCT_UNINST_KEY}" ${ORG_MOUSE_PATH} $0 … … 75 75 exists: 76 76 77 DetailPrint"Mouse driver info already saved."77 ${LogVerbose} "Mouse driver info already saved." 78 78 Goto exit 79 79 … … 81 81 82 82 !ifdef _DEBUG 83 DetailPrint"Mouse driver info: $0"83 ${LogVerbose} "Mouse driver info: $0" 84 84 !endif 85 85 … … 110 110 Function NT4_CopyFiles 111 111 112 DetailPrint"Copying files for NT4 ..."112 ${LogVerbose} "Copying files for NT4 ..." 113 113 114 114 SetOutPath "$INSTDIR" … … 137 137 Function NT4_InstallFiles 138 138 139 DetailPrint"Installing drivers for NT4 ..."139 ${LogVerbose} "Installing drivers for NT4 ..." 140 140 141 141 ; Install guest driver … … 155 155 IntCmp $0 0 +1 error error ; Check ret value (0=OK, 1=Error) 156 156 157 DetailPrint"Installing VirtualBox service ..."157 ${LogVerbose} "Installing VirtualBox service ..." 158 158 159 159 ; Create the VBoxService service … … 166 166 167 167 !ifdef _DEBUG 168 ; DetailPrint"SCM::Install VBoxSFNT.sys: $0"168 ;${LogVerbose} "SCM::Install VBoxSFNT.sys: $0" 169 169 !endif 170 170 … … 260 260 ${If} $0 == "System32\DRIVERS\VBoxMouseNT.sys" 261 261 WriteRegStr HKLM "SYSTEM\CurrentControlSet\Services\i8042prt" "ImagePath" "System32\DRIVERS\i8042prt.sys" 262 DetailPrint"Old mouse driver is set to VBoxMouseNT.sys, defaulting to i8042prt.sys ..."262 ${LogVerbose} "Old mouse driver is set to VBoxMouseNT.sys, defaulting to i8042prt.sys ..." 263 263 ${Else} 264 264 WriteRegStr HKLM "SYSTEM\CurrentControlSet\Services\i8042prt" "ImagePath" $0 -
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsUninstall.nsh
r43129 r44417 5 5 6 6 ; 7 ; Copyright (C) 2006-201 2Oracle Corporation7 ; Copyright (C) 2006-2013 Oracle Corporation 8 8 ; 9 9 ; This file is part of VirtualBox Open Source Edition (OSE), as … … 70 70 Function ${un}Uninstall 71 71 72 DetailPrint"Uninstalling system files ..."72 ${LogVerbose} "Uninstalling system files ..." 73 73 !ifdef _DEBUG 74 DetailPrint"Detected OS version: Windows $g_strWinVersion"75 DetailPrint"System Directory: $g_strSystemDir"74 ${LogVerbose} "Detected OS version: Windows $g_strWinVersion" 75 ${LogVerbose} "System Directory: $g_strSystemDir" 76 76 !endif 77 77 … … 128 128 Function ${un}UninstallInstDir 129 129 130 DetailPrint"Uninstalling directory ..."130 ${LogVerbose} "Uninstalling directory ..." 131 131 !ifdef _DEBUG 132 DetailPrint"Detected OS version: Windows $g_strWinVersion"133 DetailPrint"System Directory: $g_strSystemDir"132 ${LogVerbose} "Detected OS version: Windows $g_strWinVersion" 133 ${LogVerbose} "System Directory: $g_strSystemDir" 134 134 !endif 135 135 -
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsUninstallOld.nsh
r43129 r44417 6 6 7 7 ; 8 ; Copyright (C) 2006-201 1Oracle Corporation8 ; Copyright (C) 2006-2013 Oracle Corporation 9 9 ; 10 10 ; This file is part of VirtualBox Open Source Edition (OSE), as … … 91 91 92 92 ; Do some basic sanity checks for not screwing up too fatal ... 93 DetailPrint"Removing old installation directory ($0) ..."93 ${LogVerbose} "Removing old installation directory ($0) ..." 94 94 ${If} $0 != $PROGRAMFILES 95 95 ${AndIf} $0 != $PROGRAMFILES32 … … 99 99 ${AndIf} $0 != $WINDIR 100 100 ${AndIf} $0 != $SYSDIR 101 DetailPrint"Wiping ($0) ..."101 ${LogVerbose} "Wiping ($0) ..." 102 102 Goto wipe 103 103 ${EndIf} … … 112 112 wipe_abort: 113 113 114 DetailPrint"Won't remove directory ($0)!"114 ${LogVerbose} "Won't remove directory ($0)!" 115 115 StrCpy $0 1 ; Signal some failure 116 116 Goto exit -
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsVista.nsh
r44416 r44417 20 20 Push $0 21 21 22 DetailPrint"Checking for installation requirements for Vista / Windows 7 / Windows 8 ..."22 ${LogVerbose} "Checking for installation requirements for Vista / Windows 7 / Windows 8 ..." 23 23 24 24 ${If} $g_bForceInstall == "true" 25 DetailPrint"Forcing installation, checking requirements skipped"25 ${LogVerbose} "Forcing installation, checking requirements skipped" 26 26 goto success 27 27 ${EndIf} … … 84 84 Function Vista_InstallFiles 85 85 86 DetailPrint"Installing drivers for Vista / Windows 7 / Windows 8 ..."86 ${LogVerbose} "Installing drivers for Vista / Windows 7 / Windows 8 ..." 87 87 88 88 SetOutPath "$INSTDIR" … … 129 129 130 130 ; Remove credential provider 131 DetailPrint"Removing auto-logon support ..."131 ${LogVerbose} "Removing auto-logon support ..." 132 132 DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\Credential Providers\{275D3BCC-22BB-4948-A7F6-3A3054EBA92B}" 133 133 DeleteRegKey HKCR "CLSID\{275D3BCC-22BB-4948-A7F6-3A3054EBA92B}" -
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsW2KXP.nsh
r44352 r44417 30 30 StrCmp $g_iScreenBpp "0" exit 31 31 32 DetailPrint"Setting display parameters ($g_iScreenXx$g_iScreenY, $g_iScreenBpp BPP) ..."32 ${LogVerbose} "Setting display parameters ($g_iScreenXx$g_iScreenY, $g_iScreenBpp BPP) ..." 33 33 34 34 ; Enumerate all video devices (up to 32 at the moment, use key "MaxObjectNumber" key later) … … 56 56 ReadRegStr $dev_desc HKLM "$tmppath" "Device Description" 57 57 !ifdef _DEBUG 58 DetailPrint"Registry path: $tmppath"59 DetailPrint"Registry path to device name: $temp"60 !endif 61 DetailPrint"Detected video device: $dev_desc"58 ${LogVerbose} "Registry path: $tmppath" 59 ${LogVerbose} "Registry path to device name: $temp" 60 !endif 61 ${LogVerbose} "Detected video device: $dev_desc" 62 62 63 63 ${If} $dev_desc == "VirtualBox Graphics Adapter" 64 DetailPrint"VirtualBox video device found!"64 ${LogVerbose} "VirtualBox video device found!" 65 65 Goto dev_found 66 66 ${EndIf} … … 79 79 80 80 StrCpy $i 0 ; Start at index 0 81 DetailPrint"Detecting device ID ..."81 ${LogVerbose} "Detecting device ID ..." 82 82 83 83 dev_found_detect_id_loop: … … 87 87 StrCmp $dev_id "" dev_not_found ; No more entries? Jump out 88 88 !ifdef _DEBUG 89 DetailPrint"Got device ID: $dev_id"89 ${LogVerbose} "Got device ID: $dev_id" 90 90 !endif 91 91 ReadRegStr $dev_desc HKLM "SYSTEM\CurrentControlSet\Control\Video\$dev_id\0000" "Device Description" ; Try to read device name 92 92 ${If} $dev_desc == "VirtualBox Graphics Adapter" 93 DetailPrint"Device ID of $dev_desc: $dev_id"93 ${LogVerbose} "Device ID of $dev_desc: $dev_id" 94 94 Goto change_res 95 95 ${EndIf} … … 100 100 dev_not_found: 101 101 102 DetailPrint"No VirtualBox video device (yet) detected! No custom mode set."102 ${LogVerbose} "No VirtualBox video device (yet) detected! No custom mode set." 103 103 Goto exit 104 104 … … 106 106 107 107 !ifdef _DEBUG 108 DetailPrint"Device description: $dev_desc"109 DetailPrint"Device ID: $dev_id"108 ${LogVerbose} "Device description: $dev_desc" 109 ${LogVerbose} "Device ID: $dev_id" 110 110 !endif 111 111 … … 113 113 Var /GLOBAL reg_path_monitor 114 114 115 DetailPrint"Custom mode set: Platform is Windows $g_strWinVersion"115 ${LogVerbose} "Custom mode set: Platform is Windows $g_strWinVersion" 116 116 ${If} $g_strWinVersion == "2000" 117 117 ${OrIf} $g_strWinVersion == "Vista" … … 124 124 StrCpy $reg_path_monitor "SYSTEM\CurrentControlSet\Control\VIDEO\$dev_id\0000\Mon00000001" 125 125 ${Else} 126 DetailPrint"Custom mode set: Windows $g_strWinVersion not supported yet"126 ${LogVerbose} "Custom mode set: Windows $g_strWinVersion not supported yet" 127 127 Goto exit 128 128 ${EndIf} … … 142 142 WriteRegDWORD HKCC $reg_path_monitor "DefaultSettings.BitsPerPixel" "$g_iScreenBpp" 143 143 144 DetailPrint"Custom mode set to $g_iScreenXx$g_iScreenY, $g_iScreenBpp BPP on next restart."144 ${LogVerbose} "Custom mode set to $g_iScreenXx$g_iScreenY, $g_iScreenBpp BPP on next restart." 145 145 146 146 exit: … … 214 214 GetTempFileName $0 215 215 IfErrors 0 +3 216 DetailPrint"Error getting temp file for VBoxService.exe"216 ${LogVerbose} "Error getting temp file for VBoxService.exe" 217 217 StrCpy "$0" "$INSTDIR\VBoxServiceTemp.exe" 218 DetailPrint"VBoxService is in use, will be installed on next reboot (from '$0')"218 ${LogVerbose} "VBoxService is in use, will be installed on next reboot (from '$0')" 219 219 File "/oname=$0" "$%PATH_OUT%\bin\additions\VBoxService.exe" 220 220 IfErrors 0 +2 221 DetailPrint"Error copying VBoxService.exe to '$0'"221 ${LogVerbose} "Error copying VBoxService.exe to '$0'" 222 222 Rename /REBOOTOK "$0" "$g_strSystemDir\VBoxService.exe" 223 223 IfErrors 0 +2 224 DetailPrint"Error renaming '$0' to '$g_strSystemDir\VBoxService.exe'"224 ${LogVerbose} "Error renaming '$0' to '$g_strSystemDir\VBoxService.exe'" 225 225 Pop $0 226 226 ${EndIf} … … 337 337 do: 338 338 339 DetailPrint"Turning off WHQL protection..."339 ${LogVerbose} "Turning off WHQL protection..." 340 340 nsExec::ExecToLog '"$INSTDIR\VBoxWHQLFake.exe" "ignore"' 341 341 … … 351 351 do: 352 352 353 DetailPrint"Turning back on WHQL protection..."353 ${LogVerbose} "Turning back on WHQL protection..." 354 354 nsExec::ExecToLog '"$INSTDIR\VBoxWHQLFake.exe" "warn"' 355 355 … … 376 376 AccessControl::GrantOnFile "$g_strSystemDir\VBoxHook.dll" "(BU)" "GenericRead" 377 377 378 DetailPrint"Installing drivers ..."378 ${LogVerbose} "Installing drivers ..." 379 379 380 380 Push $0 ; For fetching results … … 383 383 384 384 ${If} $g_bNoGuestDrv == "false" 385 DetailPrint"Installing guest driver ..."385 ${LogVerbose} "Installing guest driver ..." 386 386 nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" driver install "$INSTDIR\VBoxGuest.inf" "$INSTDIR\install_drivers.log"' 387 387 Pop $0 ; Ret value … … 396 396 !if $%VBOX_WITH_WDDM_W8% == "1" 397 397 ${If} $g_strWinVersion == "8" 398 DetailPrint"Installing WDDM video driver for Windows 8..."398 ${LogVerbose} "Installing WDDM video driver for Windows 8..." 399 399 nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" driver install "$INSTDIR\VBoxVideoW8.inf" "$INSTDIR\install_drivers.log"' 400 400 ${Else} 401 401 !endif 402 DetailPrint"Installing WDDM video driver for Windows Vista and 7..."402 ${LogVerbose} "Installing WDDM video driver for Windows Vista and 7..." 403 403 nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" driver install "$INSTDIR\VBoxVideoWddm.inf" "$INSTDIR\install_drivers.log"' 404 404 !if $%VBOX_WITH_WDDM_W8% == "1" … … 406 406 !endif 407 407 ${Else} 408 DetailPrint"Installing video driver ..."408 ${LogVerbose} "Installing video driver ..." 409 409 nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" driver install "$INSTDIR\VBoxVideo.inf" "$INSTDIR\install_drivers.log"' 410 410 ${EndIf} … … 417 417 418 418 ${If} $g_bNoMouseDrv == "false" 419 DetailPrint"Installing mouse driver ..."419 ${LogVerbose} "Installing mouse driver ..." 420 420 ; The mouse filter does not contain any device IDs but a "DefaultInstall" section; 421 421 ; so this .INF file needs to be installed using "InstallHinfSection" which is implemented … … 431 431 ; Create the VBoxService service 432 432 ; No need to stop/remove the service here! Do this only on uninstallation! 433 DetailPrint"Installing VirtualBox service ..."433 ${LogVerbose} "Installing VirtualBox service ..." 434 434 nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" service create "VBoxService" "VirtualBox Guest Additions Service" 16 2 "system32\VBoxService.exe" "Base"' 435 435 Pop $0 ; Ret value … … 441 441 sf: 442 442 443 DetailPrint"Installing Shared Folders service ..."443 ${LogVerbose} "Installing Shared Folders service ..." 444 444 445 445 ; Create the Shared Folders service ... … … 458 458 459 459 ; Add the shared folders network provider 460 DetailPrint"Adding network provider (Order = $g_iSfOrder) ..."460 ${LogVerbose} "Adding network provider (Order = $g_iSfOrder) ..." 461 461 nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" netprovider add VBoxSF $g_iSfOrder' 462 462 Pop $0 ; Ret value … … 468 468 ; Nothing to do here 469 469 ${Else} 470 DetailPrint"Installing 3D OpenGL support ..."470 ${LogVerbose} "Installing 3D OpenGL support ..." 471 471 WriteRegDWORD HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers\VBoxOGL" "Version" 2 472 472 WriteRegDWORD HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers\VBoxOGL" "DriverVersion" 1 … … 606 606 607 607 ; Remove VirtualBox video driver 608 DetailPrint"Uninstalling video driver ..."608 ${LogVerbose} "Uninstalling video driver ..." 609 609 nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" driver uninstall "$INSTDIR\VBoxVideo.inf' 610 610 Pop $0 ; Ret value … … 618 618 619 619 !if $%VBOX_WITH_WDDM_W8% == "1" 620 DetailPrint"Uninstalling WDDM video driver for Windows 8..."620 ${LogVerbose} "Uninstalling WDDM video driver for Windows 8..." 621 621 nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" driver uninstall "$INSTDIR\VBoxVideoW8.inf"' 622 622 Pop $0 ; Ret value … … 629 629 !endif ; $%VBOX_WITH_WDDM_W8% == "1" 630 630 631 DetailPrint"Uninstalling WDDM video driver for Windows Vista and 7..."631 ${LogVerbose} "Uninstalling WDDM video driver for Windows Vista and 7..." 632 632 nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" driver uninstall "$INSTDIR\VBoxVideoWddm.inf"' 633 633 Pop $0 ; Ret value … … 643 643 !if $%VBOX_WITH_CROGL% == "1" 644 644 645 DetailPrint"Removing Direct3D support ..."645 ${LogVerbose} "Removing Direct3D support ..." 646 646 647 647 ; Do file validation before we uninstall … … 649 649 Pop $0 650 650 ${If} $0 == "1" ; D3D files are invalid 651 DetailPrint$(VBOX_UNINST_INVALID_D3D)651 ${LogVerbose} $(VBOX_UNINST_INVALID_D3D) 652 652 MessageBox MB_ICONSTOP|MB_OK $(VBOX_UNINST_INVALID_D3D) /SD IDOK 653 653 Goto d3d_uninstall_end … … 731 731 732 732 ; Remove mouse driver 733 DetailPrint"Removing mouse driver ..."733 ${LogVerbose} "Removing mouse driver ..." 734 734 nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" service delete VBoxMouse' 735 735 Pop $0 ; Ret value … … 750 750 ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" "GinaDLL" 751 751 ${If} $0 == "VBoxGINA.dll" 752 DetailPrint"Removing auto-logon support ..."752 ${LogVerbose} "Removing auto-logon support ..." 753 753 DeleteRegValue HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" "GinaDLL" 754 754 ${EndIf} … … 760 760 761 761 ; Remove guest driver 762 DetailPrint"Removing guest driver ..."762 ${LogVerbose} "Removing guest driver ..." 763 763 nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" driver uninstall "$INSTDIR\VBoxGuest.inf"' 764 764 Pop $0 ; Ret value … … 775 775 776 776 ; Remove shared folders driver 777 DetailPrint"Removing shared folders driver ..."777 ${LogVerbose} "Removing shared folders driver ..." 778 778 nsExec::ExecToLog '"$INSTDIR\VBoxDrvInst.exe" netprovider remove VBoxSF' 779 779 Pop $0 ; Ret value
Note:
See TracChangeset
for help on using the changeset viewer.