VirtualBox

Ignore:
Timestamp:
Oct 13, 2014 10:42:54 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
96525
Message:

pr7489. Fixed RemoveHostOnlyInterfaces(). Function RemoveHostOnlyInterfaces() resumes deleting driver packages and inf files (not only devices) related to Host-only adapters again. UninstallNetAdp deletes Host-only driver packages(not devices) only. RemoveHostOnlyInterfaces is used during uninstallation, UninstallNetAdp is used during upgrade.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/win/InstallHelper/VBoxInstallHelper.cpp

    r52824 r53038  
    503503static MSIHANDLE g_hCurrentModule = NULL;
    504504
     505static VOID vboxDrvLoggerCallback(VBOXDRVCFG_LOG_SEVERITY enmSeverity, char * msg, void * pvContext)
     506{
     507    switch (enmSeverity)
     508    {
     509        case VBOXDRVCFG_LOG_SEVERITY_FLOW:
     510        case VBOXDRVCFG_LOG_SEVERITY_REGULAR:
     511            break;
     512        case VBOXDRVCFG_LOG_SEVERITY_REL:
     513            if (g_hCurrentModule)
     514                logString(g_hCurrentModule, (LPCSTR)msg);
     515            break;
     516        default:
     517            break;
     518    }
     519}
     520
    505521static VOID netCfgLoggerCallback(LPCSTR szString)
    506522{
     
    528544
    529545    VBoxNetCfgWinSetLogging((LOG_ROUTINE)netCfgLoggerCallback);
     546    /* uncomment next line if you want to add logging information from VBoxDrvCfg.cpp */
     547//    VBoxDrvCfgLoggerSet(vboxDrvLoggerCallback, NULL);
    530548}
    531549
     
    10831101    if (SUCCEEDED(hr))
    10841102    {
    1085         hr = VBoxDrvCfgInfUninstallAllSetupDi(&GUID_DEVCLASS_NET, pwszId, L"Net", 0/* could be SUOI_FORCEDELETE */);
     1103        hr = VBoxDrvCfgInfUninstallAllSetupDi(&GUID_DEVCLASS_NET, L"Net", pwszId, SUOI_FORCEDELETE/* could be SUOI_FORCEDELETE */);
    10861104        if (FAILED(hr))
    10871105        {
    10881106            logStringW(hModule, L"RemoveHostOnlyInterfaces: NetAdp uninstalled successfully, but failed to remove INF files");
    10891107        }
     1108        else
     1109            logStringW(hModule, L"RemoveHostOnlyInterfaces: NetAdp uninstalled successfully");
     1110
    10901111    }
    10911112    else
     
    11721193    if (SUCCEEDED(hr))
    11731194    {
    1174         hr = VBoxDrvCfgInfUninstallAllSetupDi(&GUID_DEVCLASS_NET, pwszId, L"Net", 0/* could be SUOI_FORCEDELETE */);
    1175         if (FAILED(hr))
    1176             logStringW(hModule, L"StopHostOnlyInterfaces: VBoxDrvCfgInfUninstallAllSetupDi failed, hr = 0x%x", hr);
     1195        logStringW(hModule, L"StopHostOnlyInterfaces: Disabling host interfaces was successful, hr = 0x%x", hr);
    11771196    }
    11781197    else
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette