VirtualBox

Ignore:
Timestamp:
Oct 12, 2016 1:23:06 PM (8 years ago)
Author:
vboxsync
Message:

Windows Additions installer: SCM path fixes. Untested.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxDrvInst.cpp

    r63566 r64227  
    9797# define VBOX_DRVINST_LOGFILE                 "C:\\Temp\\VBoxDrvInstDIFx.log"
    9898#endif
     99
     100/** @todo Get rid of all that TCHAR crap! Use WCHAR wherever possible. */
    99101
    100102bool GetErrorMsg(DWORD dwLastError, _TCHAR *pszMsg, DWORD dwBufSize)
     
    12141216                && argc >= 8)
    12151217            {
     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
    12161222                rc = CreateService(argv[3],
    12171223                                   argv[4],
    12181224                                   _ttoi(argv[5]),
    12191225                                   _ttoi(argv[6]),
    1220                                    argv[7],
     1226                                   szImagePath,
    12211227                                   (argc > 8) ? argv[8] : NULL,
    12221228                                   (argc > 9) ? argv[9] : NULL,
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsNT4.nsh

    r44459 r64227  
    55
    66;
    7 ; Copyright (C) 2006-2013 Oracle Corporation
     7; Copyright (C) 2006-2016 Oracle Corporation
    88;
    99; This file is part of VirtualBox Open Source Edition (OSE), as
     
    145145  ; Bugfix: Correct invalid "ImagePath" (\??\C:\WINNT\...)
    146146  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"
    148148
    149149  ; Run VBoxTray when Windows NT starts
     
    157157  ; Create the VBoxService service
    158158  ; 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"
    160160
    161161   ; Create the Shared Folders service ...
     
    201201
    202202  ; 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"
    204204
    205205FunctionEnd
     
    254254  ; warn the user and set it to the default driver to not screw up NT4 here
    255255  ${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"
    257257    ${LogVerbose} "Old mouse driver is set to VBoxMouseNT.sys, defaulting to i8042prt.sys ..."
    258258  ${Else}
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsW2KXP.nsh

    r53008 r64227  
    55
    66;
    7 ; Copyright (C) 2006-2013 Oracle Corporation
     7; Copyright (C) 2006-2016 Oracle Corporation
    88;
    99; This file is part of VirtualBox Open Source Edition (OSE), as
     
    429429  ; No need to stop/remove the service here! Do this only on uninstallation!
    430430  ${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"
    432432
    433433  ; Set service description
     
    440440  ; Create the Shared Folders service ...
    441441  ; 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"
    443443
    444444  ; ... and the link to the network provider
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