VirtualBox

Changeset 70228 in vbox for trunk/src/VBox/Main/src-all/win


Ignore:
Timestamp:
Dec 19, 2017 7:28:15 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
119820
Message:

VBoxSDS: ​​​bugref:3300: fixed VirtualBox installation when UAC is enabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/win/VBoxProxyStub.c

    r70106 r70228  
    13161316    const char *pszLocalServer      = "VBoxSVC.exe";
    13171317#ifdef VBOX_WITH_SDS
     1318    /**
     1319    * The Name of windows service is referenced in different places.
     1320    * Don't forget to change it in other places too If you change it here :
     1321    *      VBoxMergeApp.wxi (cp_VBoxSDS component),
     1322    *      VBoxSDS.cpp and VirtualBox.xidl
     1323    */
    13181324    const char *pszSdsAppId         = "{EC0E78E8-FA43-43E8-AC0A-02C784C4A4FA}";
    13191325    const char *pszSdsExe           = "VBoxSDS.exe";
     
    24202426        if (fDeleteIt)
    24212427        {
    2422             hService = OpenServiceW(hSCM, pwszServiceName, SERVICE_STOP | DELETE);
     2428            hService = OpenServiceW(hSCM, pwszServiceName, SERVICE_STOP);
    24232429            if (hService)
    24242430            {
     
    24622468        {
    24632469            Assert(pState->fUpdate);
    2464             hSCM = OpenSCManagerW(NULL, NULL, SC_MANAGER_CREATE_SERVICE | SC_MANAGER_CONNECT);
     2470            hSCM = OpenSCManagerW(NULL, NULL, SC_MANAGER_CREATE_SERVICE);
    24652471            if (hSCM)
    24662472            {
     
    24682474                                          pwszServiceName,
    24692475                                          pwszDisplayName,
    2470                                           SERVICE_ALL_ACCESS /* dwDesiredAccess */,
     2476                                          SERVICE_CHANGE_CONFIG /* dwDesiredAccess */,
    24712477                                          uServiceType,
    24722478                                          uStartType,
     
    25452551
    25462552#ifdef VBOX_WITH_SDS
     2553        /**
     2554        * The Name of windows service is referenced in different places.
     2555        * Don't forget to change it in other places too If you change it here :
     2556        *      VBoxMergeApp.wxi (cp_VBoxSDS component),
     2557        *      VBoxSDS.cpp and VirtualBox.xidl
     2558        */
    25472559        vbpsUpdateWindowsService(&State, wszVBoxDir, L"VBoxSDS.exe", L"VBoxSDS",
    25482560                                 L"VirtualBox system service", L"Used as a COM server for VirtualBox API.");
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