Changeset 52824 in vbox for trunk/src/VBox/Installer/win/InstallHelper
- Timestamp:
- Sep 23, 2014 10:37:15 AM (10 years ago)
- Location:
- trunk/src/VBox/Installer/win/InstallHelper
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/win/InstallHelper/VBoxInstallHelper.cpp
r52592 r52824 1097 1097 1098 1098 netCfgLoggerDisable(); 1099 #endif /* VBOX_WITH_NETFLT */ 1100 1101 /* Never fail the install even if we did not succeed. */ 1102 return ERROR_SUCCESS; 1103 } 1104 1105 UINT __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 } 1099 1144 #endif /* VBOX_WITH_NETFLT */ 1100 1145 -
trunk/src/VBox/Installer/win/InstallHelper/VBoxInstallHelper.def
r52592 r52824 25 25 InstallNetFlt 26 26 UninstallNetFlt 27 InstallNetLwf 27 UninstallNetAdp 28 InstallNetLwf 28 29 UninstallNetLwf 29 30 UninstallTAPInstances
Note:
See TracChangeset
for help on using the changeset viewer.