Changeset 64227 in vbox for trunk/src/VBox/Additions/WINNT/Installer
- Timestamp:
- Oct 12, 2016 1:23:06 PM (8 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Installer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Installer/VBoxDrvInst.cpp
r63566 r64227 97 97 # define VBOX_DRVINST_LOGFILE "C:\\Temp\\VBoxDrvInstDIFx.log" 98 98 #endif 99 100 /** @todo Get rid of all that TCHAR crap! Use WCHAR wherever possible. */ 99 101 100 102 bool GetErrorMsg(DWORD dwLastError, _TCHAR *pszMsg, DWORD dwBufSize) … … 1214 1216 && argc >= 8) 1215 1217 { 1218 /* Make sure that the image path is in quotes. */ 1219 _TCHAR szImagePath[_MAX_PATH]; 1220 _sntprintf(szImagePath, sizeof(szImagePath) / sizeof(TCHAR), _T("\"%ws\""), argv[7]); 1221 1216 1222 rc = CreateService(argv[3], 1217 1223 argv[4], 1218 1224 _ttoi(argv[5]), 1219 1225 _ttoi(argv[6]), 1220 argv[7],1226 szImagePath, 1221 1227 (argc > 8) ? argv[8] : NULL, 1222 1228 (argc > 9) ? argv[9] : NULL, -
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsNT4.nsh
r44459 r64227 5 5 6 6 ; 7 ; Copyright (C) 2006-201 3Oracle Corporation7 ; Copyright (C) 2006-2016 Oracle Corporation 8 8 ; 9 9 ; This file is part of VirtualBox Open Source Edition (OSE), as … … 145 145 ; Bugfix: Correct invalid "ImagePath" (\??\C:\WINNT\...) 146 146 WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Services\VBoxGuest" "Start" 1 147 WriteRegStr HKLM "SYSTEM\CurrentControlSet\Services\VBoxGuest" "ImagePath" " System32\Drivers\VBoxGuestNT.sys"147 WriteRegStr HKLM "SYSTEM\CurrentControlSet\Services\VBoxGuest" "ImagePath" "\SystemRoot\System32\DRIVERS\VBoxGuestNT.sys" 148 148 149 149 ; Run VBoxTray when Windows NT starts … … 157 157 ; Create the VBoxService service 158 158 ; No need to stop/remove the service here! Do this only on uninstallation! 159 ${CmdExecute} "$\"$INSTDIR\VBoxDrvInst.exe$\" service create $\"VBoxService$\" $\"VirtualBox Guest Additions Service$\" 16 2 $\" system32\VBoxServiceNT.exe$\" $\"Base$\"" "false"159 ${CmdExecute} "$\"$INSTDIR\VBoxDrvInst.exe$\" service create $\"VBoxService$\" $\"VirtualBox Guest Additions Service$\" 16 2 $\"%SystemRoot%\system32\VBoxServiceNT.exe$\" $\"Base$\"" "false" 160 160 161 161 ; Create the Shared Folders service ... … … 201 201 202 202 ; Write mouse driver name to registry overwriting the default name 203 WriteRegStr HKLM "SYSTEM\CurrentControlSet\Services\i8042prt" "ImagePath" " System32\DRIVERS\VBoxMouseNT.sys"203 WriteRegStr HKLM "SYSTEM\CurrentControlSet\Services\i8042prt" "ImagePath" "\SystemRoot\System32\DRIVERS\VBoxMouseNT.sys" 204 204 205 205 FunctionEnd … … 254 254 ; warn the user and set it to the default driver to not screw up NT4 here 255 255 ${If} $0 == "System32\DRIVERS\VBoxMouseNT.sys" 256 WriteRegStr HKLM "SYSTEM\CurrentControlSet\Services\i8042prt" "ImagePath" " System32\DRIVERS\i8042prt.sys"256 WriteRegStr HKLM "SYSTEM\CurrentControlSet\Services\i8042prt" "ImagePath" "\SystemRoot\System32\DRIVERS\i8042prt.sys" 257 257 ${LogVerbose} "Old mouse driver is set to VBoxMouseNT.sys, defaulting to i8042prt.sys ..." 258 258 ${Else} -
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsW2KXP.nsh
r53008 r64227 5 5 6 6 ; 7 ; Copyright (C) 2006-201 3Oracle Corporation7 ; Copyright (C) 2006-2016 Oracle Corporation 8 8 ; 9 9 ; This file is part of VirtualBox Open Source Edition (OSE), as … … 429 429 ; No need to stop/remove the service here! Do this only on uninstallation! 430 430 ${LogVerbose} "Installing VirtualBox service ..." 431 ${CmdExecute} "$\"$INSTDIR\VBoxDrvInst.exe$\" service create $\"VBoxService$\" $\"VirtualBox Guest Additions Service$\" 16 2 $\" system32\VBoxService.exe$\" $\"Base$\"" "false"431 ${CmdExecute} "$\"$INSTDIR\VBoxDrvInst.exe$\" service create $\"VBoxService$\" $\"VirtualBox Guest Additions Service$\" 16 2 $\"%SystemRoot%\System32\VBoxService.exe$\" $\"Base$\"" "false" 432 432 433 433 ; Set service description … … 440 440 ; Create the Shared Folders service ... 441 441 ; No need to stop/remove the service here! Do this only on uninstallation! 442 ${CmdExecute} "$\"$INSTDIR\VBoxDrvInst.exe$\" service create $\"VBoxSF$\" $\"VirtualBox Shared Folders$\" 2 1 $\" system32\drivers\VBoxSF.sys$\" $\"NetworkProvider$\"" "false"442 ${CmdExecute} "$\"$INSTDIR\VBoxDrvInst.exe$\" service create $\"VBoxSF$\" $\"VirtualBox Shared Folders$\" 2 1 $\"\SystemRoot\System32\drivers\VBoxSF.sys$\" $\"NetworkProvider$\"" "false" 443 443 444 444 ; ... and the link to the network provider
Note:
See TracChangeset
for help on using the changeset viewer.