Changeset 106896 in vbox for trunk/src/VBox/Additions/WINNT/Installer
- Timestamp:
- Nov 8, 2024 4:39:19 PM (3 months ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Installer
- Files:
-
- 6 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Installer/InstallHelper/Makefile.kmk
r106892 r106896 31 31 # Include Sub-Makefiles. 32 32 include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk 33 34 35 # 36 # VBoxGuestInstallHelper - Helps with various installation tasks. 37 # 38 PROGRAMS += VBoxGuestInstallHelper 39 VBoxGuestInstallHelper_TEMPLATE = VBoxGuestR3Exe 40 VBoxGuestInstallHelper_DEFS = _WIN32_WINNT=0x0400 _UNICODE UNICODE 41 VBoxGuestInstallHelper_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV) 42 ifdef VBOX_WITH_WDDM 43 VBoxGuestInstallHelper_DEFS += VBOX_WITH_WDDM 44 endif 45 VBoxGuestInstallHelper_DEPS = $(VBOX_SVN_REV_KMK) 46 VBoxGuestInstallHelper_SDKS = ReorderCompilerIncs $(VBOX_WINPSDK_GST) $(VBOX_WINDDK_GST) 47 VBoxGuestInstallHelper_INCS = ../../include 48 VBoxGuestInstallHelper_SOURCES = \ 49 VBoxGuestInstallHelper.cpp \ 50 VBoxGuestInstallHelper.rc \ 51 $(PATH_ROOT)/src/VBox/GuestHost/Installation/VBoxWinDrvCommon.cpp \ 52 $(PATH_ROOT)/src/VBox/GuestHost/Installation/VBoxWinDrvInst.cpp \ 53 $(PATH_ROOT)/src/VBox/GuestHost/Installation/VBoxWinDrvStore.cpp 54 VBoxGuestInstallHelper_VBOX_IMPORT_CHECKER.win.x86 := nt4 # setupapi was introduced in NT4 55 33 56 34 57 # -
trunk/src/VBox/Additions/WINNT/Installer/InstallHelper/VBoxGuestInstallHelper.cpp
r106895 r106896 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox DrvInst- Driver and service installation helper for Windows guests.3 * VBoxGuestInstallHelper - Driver and service installation helper for Windows guests. 4 4 */ 5 5 … … 59 59 #include <iprt/string.h> 60 60 #include <iprt/system.h> 61 #include <iprt/thread.h> /* For RTThreadSleep(). */ 61 62 #include <iprt/utf16.h> 62 63 … … 594 595 } 595 596 597 /** 598 * Shows a deprecation notice for a command. 599 * 600 * @param pszCmd Command which is deprecated. 601 */ 602 static void showCmdDeprecationNotice(const char *pszCmd) 603 { 604 PrintStr("!!! Deprecation Notice !!!\n"); 605 PrintSSS("\tThe command \"", pszCmd, "\" is deprecated, is not supported anymore\n"); 606 PrintStr("\tand will be removed in a future version.\n"); 607 PrintStr("!!! Deprecation Notice !!!\n\n"); 608 PrintStr("Please use VBoxGuestInstallHelper.exe instead.\n\n"); 609 610 RTThreadSleep(RT_MS_10SEC); /* Make it painful to use. */ 611 } 612 596 613 /** Handles 'driver install'. */ 597 614 static int handleDriverInstall(unsigned cArgs, wchar_t **papwszArgs) 598 615 { 616 showCmdDeprecationNotice("install"); 617 599 618 char *pszInfFile = NULL; 600 619 int rc = RTUtf16ToUtf8(papwszArgs[0], &pszInfFile); … … 637 656 static int handleDriverUninstall(unsigned cArgs, wchar_t **papwszArgs) 638 657 { 658 showCmdDeprecationNotice("uninstall"); 659 639 660 char *pszInfFile = NULL; 640 661 int rc = RTUtf16ToUtf8(papwszArgs[0], &pszInfFile); … … 683 704 static int handleDriverExecuteInf(unsigned cArgs, wchar_t **papwszArgs) 684 705 { 706 showCmdDeprecationNotice("executeinf"); 707 685 708 char *pszInfFile = NULL; 686 709 int rc = RTUtf16ToUtf8(papwszArgs[0], &pszInfFile); … … 2219 2242 "Version: " RT_XSTR(VBOX_VERSION_MAJOR) "." RT_XSTR(VBOX_VERSION_MINOR) "." RT_XSTR(VBOX_VERSION_BUILD) "r" RT_XSTR(VBOX_SVN_REV) "\r\n" 2220 2243 "\r\n" 2221 "Syntax: VBox DrvInst<command> <subcommand>\r\n"2244 "Syntax: VBoxGuestInstallHelper <command> <subcommand>\r\n" 2222 2245 "\r\n" 2223 2246 "Drivers:\r\n" 2224 " VBox DrvInstdriver install <inf-file> [pnp-id] [log-file]\r\n"2225 " VBox DrvInstdriver uninstall <inf-file> <model> [pnp-id] [log-file]\r\n"2226 " VBox DrvInstdriver executeinf <inf-file> [section]\r\n"2227 " VBox DrvInstdriver nt4-install-video [install-dir]\r\n"2247 " VBoxGuestInstallHelper driver install <inf-file> [pnp-id] [log-file]\r\n" 2248 " VBoxGuestInstallHelper driver uninstall <inf-file> <model> [pnp-id] [log-file]\r\n" 2249 " VBoxGuestInstallHelper driver executeinf <inf-file> [section]\r\n" 2250 " VBoxGuestInstallHelper driver nt4-install-video [install-dir]\r\n" 2228 2251 "\r\n" 2229 2252 "Service:\r\n" 2230 " VBox DrvInstservice create <name> <display-name> <service-type>\r\n"2253 " VBoxGuestInstallHelper service create <name> <display-name> <service-type>\r\n" 2231 2254 " <start-type> <binary-path> [load-order] [deps] [user] [password]\r\n" 2232 " VBox DrvInstservice delete <name>\r\n"2255 " VBoxGuestInstallHelper service delete <name>\r\n" 2233 2256 "\r\n" 2234 2257 "Network Provider:\r\n" 2235 " VBox DrvInstnetprovider add <name> <position>\r\n"2236 " VBox DrvInstnetprovider remove <name>\r\n"2258 " VBoxGuestInstallHelper netprovider add <name> <position>\r\n" 2259 " VBoxGuestInstallHelper netprovider remove <name>\r\n" 2237 2260 "\r\n" 2238 2261 "Registry:\r\n" 2239 " VBox DrvInstregistry write <root> <sub-key> <value-name> <type> <value>\r\n"2262 " VBoxGuestInstallHelper registry write <root> <sub-key> <value-name> <type> <value>\r\n" 2240 2263 " [binary-conversion] [max-size]\r\n" 2241 " VBox DrvInstregistry delete <root> <sub-key> <value-name>\r\n"2264 " VBoxGuestInstallHelper registry delete <root> <sub-key> <value-name>\r\n" 2242 2265 /** @todo Add roots for these two. */ 2243 " VBox DrvInstregistry addmultisz <sub-key> <value-name> <to-add> <position>\r\n"2244 " VBox DrvInstregistry delmultisz <sub-key> <value-name> <to-remove>\r\n"2245 " VBox DrvInstregistry addlistitem <root> <sub-key> <value-name> <to-add>\r\n"2266 " VBoxGuestInstallHelper registry addmultisz <sub-key> <value-name> <to-add> <position>\r\n" 2267 " VBoxGuestInstallHelper registry delmultisz <sub-key> <value-name> <to-remove>\r\n" 2268 " VBoxGuestInstallHelper registry addlistitem <root> <sub-key> <value-name> <to-add>\r\n" 2246 2269 " [position [dup|no-dup]]\r\n" 2247 " VBox DrvInstregistry dellistitem <root> <sub-key> <value-name> <to-remove>\r\n"2270 " VBoxGuestInstallHelper registry dellistitem <root> <sub-key> <value-name> <to-remove>\r\n" 2248 2271 "\r\n" 2249 2272 "Standard options:\r\n" 2250 " VBox DrvInst[help|--help|/help|-h|/h|-?|/h] [...]\r\n"2251 " VBox DrvInst[version|--version|-V]\r\n"2273 " VBoxGuestInstallHelper [help|--help|/help|-h|/h|-?|/h] [...]\r\n" 2274 " VBoxGuestInstallHelper [version|--version|-V]\r\n" 2252 2275 ); 2253 2276 RT_NOREF(cArgs, papwszArgs); … … 2270 2293 } s_aActions[] = 2271 2294 { 2272 { "driver", "install", 1, 3, handleDriverInstall }, 2273 { "driver", "uninstall", 2, 4, handleDriverUninstall }, 2274 { "driver", "executeinf", 1, 3, handleDriverExecuteInf }, 2295 { "driver", "install", 1, 3, handleDriverInstall }, /* Deprecated */ 2296 { "driver", "uninstall", 2, 4, handleDriverUninstall }, /* Deprecated */ 2297 { "driver", "executeinf", 1, 3, handleDriverExecuteInf }, /* Deprecated */ 2275 2298 { "driver", "nt4-install-video", 0, 1, handleDriverNt4InstallVideo }, 2276 2299 { "service", "create", 5, 9, handleServiceCreate }, -
trunk/src/VBox/Additions/WINNT/Installer/InstallHelper/VBoxGuestInstallHelper.rc
r106895 r106896 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox DrvInst- Resource file containing version info and icon.3 * VBoxGuestInstallHelper - Resource file containing version info and icon. 4 4 */ 5 5 … … 45 45 BEGIN 46 46 VALUE "FileDescription", "VirtualBox Driver Installer\0" 47 VALUE "InternalName", "VBox DrvInst\0"48 VALUE "OriginalFilename", "VBox DrvInst.exe\0"47 VALUE "InternalName", "VBoxGuestInstallHelper\0" 48 VALUE "OriginalFilename", "VBoxGuestInstallHelper.exe\0" 49 49 VALUE "CompanyName", VBOX_RC_COMPANY_NAME 50 50 VALUE "FileVersion", VBOX_RC_FILE_VERSION_STR -
trunk/src/VBox/Additions/WINNT/Installer/Makefile.kmk
r106854 r106896 49 49 TOOL_ZIP_PACK ?= zip 50 50 endif 51 52 53 #54 # VBoxDrvInst - Helps with driver installation.55 #56 PROGRAMS += VBoxDrvInst57 VBoxDrvInst_TEMPLATE = VBoxGuestR3Exe58 VBoxDrvInst_DEFS = _WIN32_WINNT=0x0400 _UNICODE UNICODE59 VBoxDrvInst_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)60 ifdef VBOX_WITH_WDDM61 VBoxDrvInst_DEFS += VBOX_WITH_WDDM62 endif63 VBoxDrvInst_DEPS = $(VBOX_SVN_REV_KMK)64 VBoxDrvInst_SDKS = ReorderCompilerIncs $(VBOX_WINPSDK_GST) $(VBOX_WINDDK_GST)65 VBoxDrvInst_INCS = ../include66 VBoxDrvInst_SOURCES = \67 VBoxDrvInst.cpp \68 VBoxDrvInst.rc \69 $(PATH_ROOT)/src/VBox/GuestHost/Installation/VBoxWinDrvCommon.cpp \70 $(PATH_ROOT)/src/VBox/GuestHost/Installation/VBoxWinDrvInst.cpp \71 $(PATH_ROOT)/src/VBox/GuestHost/Installation/VBoxWinDrvStore.cpp72 VBoxDrvInst_VBOX_IMPORT_CHECKER.win.x86 := nt4 # setupapi was introduced in NT473 51 74 52 … … 140 118 141 119 if !$(intersects win, $(VBOX_WITH_CORP_CODE_SIGNING)) && $(intersects win_planb,$(VBOX_WITH_CORP_CODE_SIGNING)) 142 $(evalcall2 def_VBoxAdditionsInstCertFiles,vbox-sha256-r3.cer,$(VBOX_PATH_ADDITIONS)/VBox DrvInst.exe, \120 $(evalcall2 def_VBoxAdditionsInstCertFiles,vbox-sha256-r3.cer,$(VBOX_PATH_ADDITIONS)/VBoxGuestInstallHelper.exe, \ 143 121 extract-exe-signer-cert, 1) 144 122 VBOX_GA_CERT_ROOT_SHA2_R3 := vbox-sha256-r3-root.cer 145 $(evalcall2 def_VBoxAdditionsInstCertFiles,$(VBOX_GA_CERT_ROOT_SHA2_R3),$(VBOX_PATH_ADDITIONS)/VBox DrvInst.exe, \123 $(evalcall2 def_VBoxAdditionsInstCertFiles,$(VBOX_GA_CERT_ROOT_SHA2_R3),$(VBOX_PATH_ADDITIONS)/VBoxGuestInstallHelper.exe, \ 146 124 extract-signer-root --self-signed-roots-from-system, 1) 147 125 VBOX_GA_CERT_ROOT_SHA2_R3_TS := vbox-sha256-r3-timestamp-root.cer 148 $(evalcall2 def_VBoxAdditionsInstCertFiles,$(VBOX_GA_CERT_ROOT_SHA2_R3_TS),$(VBOX_PATH_ADDITIONS)/VBox DrvInst.exe, \126 $(evalcall2 def_VBoxAdditionsInstCertFiles,$(VBOX_GA_CERT_ROOT_SHA2_R3_TS),$(VBOX_PATH_ADDITIONS)/VBoxGuestInstallHelper.exe, \ 149 127 extract-timestamp-root --self-signed-roots-from-system, 1) 150 128 endif … … 324 302 $(if $(VBOX_WIN_ATTESTATION_SIGNING),$(PATH_OUT)/repackadd/$(VBOX_SIGNED_DRIVERS_ZIP_NAME)) \ 325 303 $(VBOX_VERSION_STAMP) \ 326 $$(VBox DrvInst_1_STAGE_TARGET) \304 $$(VBoxGuestInstallHelper_1_STAGE_TARGET) \ 327 305 | $(VBOX_SIGN_IMAGE_ORDERDEPS) 328 306 $(call MSG_L1,Creating $@, from $<) … … 374 352 $(VBOX_NSIS_ICON_FILE) \ 375 353 $(VBOX_VERSION_STAMP) \ 376 $$(VBox DrvInst_1_STAGE_TARGET) \354 $$(VBoxGuestInstallHelper_1_STAGE_TARGET) \ 377 355 | $$(dir $$@) 378 356 $(call MSG_L1,Creating $@, from $<) -
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsCommon.nsh
r106849 r106896 56 56 !endif 57 57 58 FILE "$%PATH_OUT%\bin\additions\VBox DrvInst.exe"58 FILE "$%PATH_OUT%\bin\additions\VBoxGuestInstallHelper.exe" 59 59 60 60 !if $%KBUILD_TARGET_ARCH% != "arm64" ;; @todo win.arm64: Make VBoxVideo and friends build on arm. … … 237 237 ; Misc tools 238 238 SetOutPath "$0\Tools" 239 FILE "$%PATH_OUT%\bin\additions\VBox DrvInst.exe"239 FILE "$%PATH_OUT%\bin\additions\VBoxGuestInstallHelper.exe" 240 240 !ifdef VBOX_WITH_ADDITIONS_SHIPPING_AUDIO_TEST 241 241 FILE "$%PATH_OUT%\bin\additions\VBoxAudioTest.exe" -
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsNT4.nsh
r106061 r106896 162 162 163 163 ; Install guest driver 164 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" service create $\"VBoxGuest$\" $\"VBoxGuest Support Driver$\" 1 1 $\"$SYSDIR\drivers\VBoxGuest.sys$\" $\"Base$\"" 'non-zero-exitcode=abort'164 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" service create $\"VBoxGuest$\" $\"VBoxGuest Support Driver$\" 1 1 $\"$SYSDIR\drivers\VBoxGuest.sys$\" $\"Base$\"" 'non-zero-exitcode=abort' 165 165 166 166 ; Bugfix: Set "Start" to 1, otherwise, VBoxGuest won't start on boot-up! … … 173 173 174 174 ; Video driver 175 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" driver nt4-install-video" 'non-zero-exitcode=abort'175 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" driver nt4-install-video" 'non-zero-exitcode=abort' 176 176 177 177 ; Create the VBoxService service 178 178 ; No need to stop/remove the service here! Do this only on uninstallation! 179 179 ${LogVerbose} "Installing VirtualBox service ..." 180 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" service create $\"VBoxService$\" $\"VirtualBox Guest Additions Service$\" 16 2 $\"%SystemRoot%\system32\VBoxService.exe$\" $\"Base$\"" 'non-zero-exitcode=abort'180 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" service create $\"VBoxService$\" $\"VirtualBox Guest Additions Service$\" 16 2 $\"%SystemRoot%\system32\VBoxService.exe$\" $\"Base$\"" 'non-zero-exitcode=abort' 181 181 182 182 ; Create the Shared Folders service ... … … 196 196 197 197 ; Add the shared folders network provider 198 ;${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" netprovider add VBoxSF" 'non-zero-exitcode=abort'198 ;${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" netprovider add VBoxSF" 'non-zero-exitcode=abort' 199 199 200 200 FunctionEnd … … 237 237 238 238 ; Remove the guest driver service 239 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" service delete VBoxGuest" 'non-zero-exitcode=log'239 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" service delete VBoxGuest" 'non-zero-exitcode=log' 240 240 Delete /REBOOTOK "$SYSDIR\drivers\VBoxGuest.sys" 241 241 242 242 ; Delete the VBoxService service 243 243 Call ${un}StopVBoxService 244 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" service delete VBoxService" 'non-zero-exitcode=log'244 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" service delete VBoxService" 'non-zero-exitcode=log' 245 245 DeleteRegValue HKLM "Software\Microsoft\Windows\CurrentVersion\Run" "VBoxService" 246 246 Delete /REBOOTOK "$SYSDIR\VBoxService.exe" … … 257 257 258 258 ; Delete the VBoxVideo service 259 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" service delete VBoxVideo" 'non-zero-exitcode=log'259 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" service delete VBoxVideo" 'non-zero-exitcode=log' 260 260 261 261 ; Delete the VBox video driver files -
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsUninstall.nsh
r106321 r106896 34 34 35 35 ; Remove common files 36 Delete /REBOOTOK "$INSTDIR\VBox DrvInst.exe"36 Delete /REBOOTOK "$INSTDIR\VBoxGuestInstallHelper.exe" 37 37 38 38 Delete /REBOOTOK "$INSTDIR\VBoxVideo.inf" -
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsW2KXP.nsh
r106844 r106896 141 141 142 142 ; Write the new value in the adapter config (VBoxVideo.sys) using hex values in binary format 143 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" registry write HKLM $reg_path_device CustomXRes REG_BIN $g_iScreenX DWORD" 'non-zero-exitcode=abort'144 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" registry write HKLM $reg_path_device CustomYRes REG_BIN $g_iScreenY DWORD" 'non-zero-exitcode=abort'145 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" registry write HKLM $reg_path_device CustomBPP REG_BIN $g_iScreenBpp DWORD" 'non-zero-exitcode=abort'143 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" registry write HKLM $reg_path_device CustomXRes REG_BIN $g_iScreenX DWORD" 'non-zero-exitcode=abort' 144 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" registry write HKLM $reg_path_device CustomYRes REG_BIN $g_iScreenY DWORD" 'non-zero-exitcode=abort' 145 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" registry write HKLM $reg_path_device CustomBPP REG_BIN $g_iScreenBpp DWORD" 'non-zero-exitcode=abort' 146 146 147 147 ; ... and tell Windows to use that mode on next start! … … 525 525 ${If} $g_bNoGuestDrv == "false" 526 526 ${LogVerbose} "Installing guest driver ..." 527 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" driver install $\"$INSTDIR\VBoxGuest$g_strEarlyNTDrvInfix.inf$\" $\"PCI\VEN_80EE&DEV_CAFE$\" $\"$INSTDIR\install_drivers.log$\"" 'non-zero-exitcode=abort'527 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" driver install $\"$INSTDIR\VBoxGuest$g_strEarlyNTDrvInfix.inf$\" $\"PCI\VEN_80EE&DEV_CAFE$\" $\"$INSTDIR\install_drivers.log$\"" 'non-zero-exitcode=abort' 528 528 ${Else} 529 529 ${LogVerbose} "Guest driver installation skipped!" … … 534 534 ${If} $g_bWithWDDM == "true" 535 535 ${LogVerbose} "Installing WDDM video driver..." 536 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" driver install $\"$INSTDIR\VBoxWddm.inf$\" $\"$\" $\"$INSTDIR\install_drivers.log$\"" 'non-zero-exitcode=abort'536 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" driver install $\"$INSTDIR\VBoxWddm.inf$\" $\"$\" $\"$INSTDIR\install_drivers.log$\"" 'non-zero-exitcode=abort' 537 537 ${Else} 538 538 ${LogVerbose} "Installing video driver ..." 539 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" driver install $\"$INSTDIR\VBoxVideo$g_strEarlyNTDrvInfix.inf$\" $\"$\" $\"$INSTDIR\install_drivers.log$\"" 'non-zero-exitcode=abort'539 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" driver install $\"$INSTDIR\VBoxVideo$g_strEarlyNTDrvInfix.inf$\" $\"$\" $\"$INSTDIR\install_drivers.log$\"" 'non-zero-exitcode=abort' 540 540 ${EndIf} 541 541 ${Else} … … 549 549 ${If} $g_bNoMouseDrv == "false" 550 550 ${LogVerbose} "Installing mouse driver ..." 551 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" driver executeinf $\"$INSTDIR\VBoxMouse.inf$\" $\"DefaultInstall.NT$%KBUILD_TARGET_ARCH%$\" $\"$INSTDIR\install_drivers.log$\"" 'non-zero-exitcode=abort'551 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" driver executeinf $\"$INSTDIR\VBoxMouse.inf$\" $\"DefaultInstall.NT$%KBUILD_TARGET_ARCH%$\" $\"$INSTDIR\install_drivers.log$\"" 'non-zero-exitcode=abort' 552 552 ${Else} 553 553 ${LogVerbose} "Mouse driver installation skipped!" … … 559 559 ; 560 560 ${LogVerbose} "Installing VirtualBox service ..." 561 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" service create $\"VBoxService$\" $\"VirtualBox Guest Additions Service$\" 16 2 $\"%SystemRoot%\System32\VBoxService.exe$\" $\"Base$\"" 'non-zero-exitcode=abort'561 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" service create $\"VBoxService$\" $\"VirtualBox Guest Additions Service$\" 16 2 $\"%SystemRoot%\System32\VBoxService.exe$\" $\"Base$\"" 'non-zero-exitcode=abort' 562 562 563 563 ; Set service description … … 572 572 ; Create the Shared Folders service ... 573 573 ; No need to stop/remove the service here! Do this only on uninstallation! 574 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" service create $\"VBoxSF$\" $\"VirtualBox Shared Folders$\" 2 1 $\"\SystemRoot\System32\drivers\VBoxSF.sys$\" $\"NetworkProvider$\"" 'non-zero-exitcode=abort'574 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" service create $\"VBoxSF$\" $\"VirtualBox Shared Folders$\" 2 1 $\"\SystemRoot\System32\drivers\VBoxSF.sys$\" $\"NetworkProvider$\"" 'non-zero-exitcode=abort' 575 575 576 576 ; ... and the link to the network provider … … 580 580 581 581 ; Add default network providers (if not present or corrupted) 582 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" netprovider add WebClient" 'non-zero-exitcode=abort'583 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" netprovider add LanmanWorkstation" 'non-zero-exitcode=abort'584 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" netprovider add RDPNP" 'non-zero-exitcode=abort'582 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" netprovider add WebClient" 'non-zero-exitcode=abort' 583 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" netprovider add LanmanWorkstation" 'non-zero-exitcode=abort' 584 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" netprovider add RDPNP" 'non-zero-exitcode=abort' 585 585 586 586 ; Add the shared folders network provider 587 587 ${LogVerbose} "Adding network provider (Order = $g_iSfOrder) ..." 588 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" netprovider add VBoxSF $g_iSfOrder" 'non-zero-exitcode=abort'588 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" netprovider add VBoxSF $g_iSfOrder" 'non-zero-exitcode=abort' 589 589 590 590 … … 700 700 ; Remove VirtualBox video driver 701 701 ${LogVerbose} "Uninstalling video driver ..." 702 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" driver uninstall $\"$INSTDIR\VBoxVideo$g_strEarlyNTDrvInfix.inf$\" $\"VBoxVideo*$\"" 'non-zero-exitcode=log'703 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" service delete VBoxVideo" 'non-zero-exitcode=log'702 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" driver uninstall $\"$INSTDIR\VBoxVideo$g_strEarlyNTDrvInfix.inf$\" $\"VBoxVideo*$\"" 'non-zero-exitcode=log' 703 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" service delete VBoxVideo" 'non-zero-exitcode=log' 704 704 Delete /REBOOTOK "$g_strSystemDir\drivers\VBoxVideo.sys" 705 705 Delete /REBOOTOK "$g_strSystemDir\VBoxDisp.dll" … … 709 709 710 710 ${LogVerbose} "Uninstalling WDDM video driver..." 711 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" driver uninstall $\"$INSTDIR\VBoxWddm.inf$\" $\"VBoxWddm*$\"" 'non-zero-exitcode=log'712 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" service delete VBoxWddm" 'non-zero-exitcode=log'711 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" driver uninstall $\"$INSTDIR\VBoxWddm.inf$\" $\"VBoxWddm*$\"" 'non-zero-exitcode=log' 712 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" service delete VBoxWddm" 'non-zero-exitcode=log' 713 713 ;misha> @todo driver file removal (as well as service removal) should be done as driver package uninstall 714 ; could be done with "VBox DrvInst.exe /u", e.g. by passing additional arg to it denoting that driver package is to be uninstalled714 ; could be done with "VBoxGuestInstallHelper.exe /u", e.g. by passing additional arg to it denoting that driver package is to be uninstalled 715 715 Delete /REBOOTOK "$g_strSystemDir\drivers\VBoxWddm.sys" 716 716 717 717 ; Obsolete files begin 718 718 ${LogVerbose} "Uninstalling WDDM video driver for Windows 8..." 719 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" driver uninstall $\"$INSTDIR\VBoxVideoW8.inf$\" $\"VBoxVideoW8*$\"" 'non-zero-exitcode=log'720 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" service delete VBoxVideoW8" 'non-zero-exitcode=log'719 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" driver uninstall $\"$INSTDIR\VBoxVideoW8.inf$\" $\"VBoxVideoW8*$\"" 'non-zero-exitcode=log' 720 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" service delete VBoxVideoW8" 'non-zero-exitcode=log' 721 721 ;misha> @todo driver file removal (as well as service removal) should be done as driver package uninstall 722 ; could be done with "VBox DrvInst.exe /u", e.g. by passing additional arg to it denoting that driver package is to be uninstalled722 ; could be done with "VBoxGuestInstallHelper.exe /u", e.g. by passing additional arg to it denoting that driver package is to be uninstalled 723 723 Delete /REBOOTOK "$g_strSystemDir\drivers\VBoxVideoW8.sys" 724 724 725 725 ${LogVerbose} "Uninstalling WDDM video driver for Windows Vista and 7..." 726 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" driver uninstall $\"$INSTDIR\VBoxVideoWddm.inf$\" $\"VBoxVideoWddm*$\"" 'non-zero-exitcode=log'726 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" driver uninstall $\"$INSTDIR\VBoxVideoWddm.inf$\" $\"VBoxVideoWddm*$\"" 'non-zero-exitcode=log' 727 727 ; Always try to remove both VBoxVideoWddm & VBoxVideo services no matter what is installed currently 728 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" service delete VBoxVideoWddm" 'non-zero-exitcode=log'728 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" service delete VBoxVideoWddm" 'non-zero-exitcode=log' 729 729 ;misha> @todo driver file removal (as well as service removal) should be done as driver package uninstall 730 ; could be done with "VBox DrvInst.exe /u", e.g. by passing additional arg to it denoting that driver package is to be uninstalled730 ; could be done with "VBoxGuestInstallHelper.exe /u", e.g. by passing additional arg to it denoting that driver package is to be uninstalled 731 731 Delete /REBOOTOK "$g_strSystemDir\drivers\VBoxVideoWddm.sys" 732 732 ; Obsolete files end … … 761 761 ; Remove mouse driver 762 762 ${LogVerbose} "Removing mouse driver ..." 763 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" driver uninstall $\"$INSTDIR\VBoxMouse.inf$\" $\"VBoxMouse*$\"" 'non-zero-exitcode=log'763 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" driver uninstall $\"$INSTDIR\VBoxMouse.inf$\" $\"VBoxMouse*$\"" 'non-zero-exitcode=log' 764 764 ; @todo Fix VBoxMouse.inf to also take care of the next line! 765 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" registry delmultisz $\"SYSTEM\CurrentControlSet\Control\Class\{4D36E96F-E325-11CE-BFC1-08002BE10318}$\" $\"UpperFilters$\" $\"VBoxMouse$\"" 'non-zero-exitcode=log'765 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" registry delmultisz $\"SYSTEM\CurrentControlSet\Control\Class\{4D36E96F-E325-11CE-BFC1-08002BE10318}$\" $\"UpperFilters$\" $\"VBoxMouse$\"" 'non-zero-exitcode=log' 766 766 767 767 ; Delete the VBoxService service 768 768 Call ${un}StopVBoxService 769 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" service delete VBoxService" 'non-zero-exitcode=log'769 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" service delete VBoxService" 'non-zero-exitcode=log' 770 770 DeleteRegValue HKLM "Software\Microsoft\Windows\CurrentVersion\Run" "VBoxService" 771 771 Delete /REBOOTOK "$g_strSystemDir\VBoxService.exe" … … 786 786 ; Remove guest driver 787 787 ${LogVerbose} "Removing guest driver ..." 788 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" driver uninstall $\"$INSTDIR\VBoxGuest$g_strEarlyNTDrvInfix.inf$\" $\"VBoxGuest*$\"" 'non-zero-exitcode=log'789 790 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" service delete VBoxGuest" 'non-zero-exitcode=log'788 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" driver uninstall $\"$INSTDIR\VBoxGuest$g_strEarlyNTDrvInfix.inf$\" $\"VBoxGuest*$\"" 'non-zero-exitcode=log' 789 790 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" service delete VBoxGuest" 'non-zero-exitcode=log' 791 791 Delete /REBOOTOK "$g_strSystemDir\drivers\VBoxGuest.sys" 792 792 Delete /REBOOTOK "$g_strSystemDir\VBCoInst.dll" ; Deprecated, does not get installed anymore … … 798 798 ; Remove shared folders driver 799 799 ${LogVerbose} "Removing shared folders driver ..." 800 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" netprovider remove VBoxSF" 'non-zero-exitcode=log'801 ${CmdExecute} "$\"$INSTDIR\VBox DrvInst.exe$\" service delete VBoxSF" 'non-zero-exitcode=log'800 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" netprovider remove VBoxSF" 'non-zero-exitcode=log' 801 ${CmdExecute} "$\"$INSTDIR\VBoxGuestInstallHelper.exe$\" service delete VBoxSF" 'non-zero-exitcode=log' 802 802 Delete /REBOOTOK "$g_strSystemDir\VBoxMRXNP.dll" ; The network provider DLL will be locked 803 803 !if $%KBUILD_TARGET_ARCH% == "amd64"
Note:
See TracChangeset
for help on using the changeset viewer.