VirtualBox

Ignore:
Timestamp:
Sep 23, 2014 10:37:15 AM (10 years ago)
Author:
vboxsync
Message:

pr7489. Added uninstallation inf files and driver packages related to Host-Only adapter (VBoxNetAdp)

Location:
trunk/src/VBox/Installer/win/InstallHelper
Files:
2 edited

Legend:

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

    r52592 r52824  
    10971097
    10981098    netCfgLoggerDisable();
     1099#endif /* VBOX_WITH_NETFLT */
     1100
     1101    /* Never fail the install even if we did not succeed. */
     1102    return ERROR_SUCCESS;
     1103}
     1104
     1105UINT __stdcall UninstallNetAdp(MSIHANDLE hModule)
     1106{
     1107#ifdef VBOX_WITH_NETFLT
     1108    INetCfg *pNetCfg;
     1109    UINT uErr;
     1110
     1111    netCfgLoggerEnable(hModule);
     1112
     1113    BOOL bOldIntMode = SetupSetNonInteractiveMode(FALSE);
     1114
     1115    __try
     1116    {
     1117        logStringW(hModule, L"Uninstalling NetAdp");
     1118
     1119        uErr = doNetCfgInit(hModule, &pNetCfg, TRUE);
     1120        if (uErr == ERROR_SUCCESS)
     1121        {
     1122            HRESULT hr = VBoxNetCfgWinNetAdpUninstall(pNetCfg);
     1123            if (hr != S_OK)
     1124                logStringW(hModule, L"UninstallNetAdp: VBoxNetCfgWinUninstallComponent failed, error = 0x%x", hr);
     1125
     1126            uErr = errorConvertFromHResult(hModule, hr);
     1127
     1128            VBoxNetCfgWinReleaseINetCfg(pNetCfg, TRUE);
     1129
     1130            logStringW(hModule, L"Uninstalling NetAdp done, error = 0x%x", uErr);
     1131        }
     1132        else
     1133            logStringW(hModule, L"UninstallNetAdp: doNetCfgInit failed, error = 0x%x", uErr);
     1134    }
     1135    __finally
     1136    {
     1137        if (bOldIntMode)
     1138        {
     1139            /* The prev mode != FALSE, i.e. non-interactive. */
     1140            SetupSetNonInteractiveMode(bOldIntMode);
     1141        }
     1142        netCfgLoggerDisable();
     1143    }
    10991144#endif /* VBOX_WITH_NETFLT */
    11001145
  • trunk/src/VBox/Installer/win/InstallHelper/VBoxInstallHelper.def

    r52592 r52824  
    2525    InstallNetFlt
    2626    UninstallNetFlt
    27     InstallNetLwf
     27        UninstallNetAdp
     28        InstallNetLwf
    2829    UninstallNetLwf
    2930    UninstallTAPInstances
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