- Timestamp:
- Oct 13, 2014 10:42:54 AM (10 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/cfg/VBoxNetCfg.cpp
r52824 r53038 548 548 case VBOXNECTFGWINPROPCHANGE_TYPE_DISABLE: 549 549 PcParams.StateChange = DICS_DISABLE; 550 NonStandardLogFlow(("vboxNetCfgWinPropChangeAllNetDevicesOfIdCallback: Change type (DICS_DISABLE): %d\n", pPc->enmPcType)); 550 551 break; 551 552 case VBOXNECTFGWINPROPCHANGE_TYPE_ENABLE: 552 553 PcParams.StateChange = DICS_ENABLE; 554 NonStandardLogFlow(("vboxNetCfgWinPropChangeAllNetDevicesOfIdCallback: Change type (DICS_ENABLE): %d\n", pPc->enmPcType)); 553 555 break; 554 556 default: … … 684 686 if (cCurId >= cPnPId) 685 687 { 688 NonStandardLogFlow(("!wcsnicmp(pCurId = (%S), pwszPnPId = (%S), cPnPId = (%d))", pCurId, pwszPnPId, cPnPId)); 689 686 690 pCurId += cCurId - cPnPId; 687 691 if (!wcsnicmp(pCurId, pwszPnPId, cPnPId)) … … 723 727 Pc.enmPcType = enmPcType; 724 728 Pc.hr = S_OK; 729 NonStandardLogFlow(("Calling VBoxNetCfgWinEnumNetDevices with lpszPnPId =(%S) and vboxNetCfgWinPropChangeAllNetDevicesOfIdCallback", lpszPnPId)); 730 725 731 HRESULT hr = VBoxNetCfgWinEnumNetDevices(lpszPnPId, vboxNetCfgWinPropChangeAllNetDevicesOfIdCallback, &Pc); 726 732 if (!SUCCEEDED(hr)) … … 2069 2075 static HRESULT vboxNetCfgWinNetAdpUninstall(IN INetCfg *pNc, DWORD InfRmFlags) 2070 2076 { 2071 INetCfgComponent *pNcc = NULL; 2072 HRESULT hr = pNc->FindComponent(VBOXNETCFGWIN_NETADP_ID, &pNcc); 2073 if (hr == S_OK) 2074 { 2075 NonStandardLog("NetAdp is installed currently, uninstalling ...\n"); 2076 2077 hr = VBoxNetCfgWinUninstallComponent(pNc, pNcc); 2078 NonStandardLogFlow(("NetAdp component uninstallation ended with hr (0x%x)\n", hr)); 2079 2080 pNcc->Release(); 2081 } 2082 else if (hr == S_FALSE) 2083 { 2084 NonStandardLog("NetAdp is not installed currently\n"); 2085 } 2086 else 2087 { 2088 NonStandardLogFlow(("FindComponent failed, hr (0x%x)\n", hr)); 2089 } 2077 HRESULT hr = S_OK; 2078 NonStandardLog("Finding NetAdp driver package and trying to uninstall it ...\n"); 2090 2079 2091 2080 VBoxDrvCfgInfUninstallAllF(L"Net", VBOXNETCFGWIN_NETADP_ID, InfRmFlags); 2092 2081 NonStandardLog("NetAdp is not installed currently\n"); 2093 2082 return hr; 2094 2083 } … … 2096 2085 VBOXNETCFGWIN_DECL(HRESULT) VBoxNetCfgWinNetAdpUninstall(IN INetCfg *pNc) 2097 2086 { 2098 return vboxNetCfgWinNetAdpUninstall(pNc, 0);2087 return vboxNetCfgWinNetAdpUninstall(pNc, SUOI_FORCEDELETE); 2099 2088 } 2100 2089 -
trunk/src/VBox/HostDrivers/win/cfg/VBoxDrvCfg.cpp
r52241 r53038 352 352 LPWSTR lpszPnPId; 353 353 HRESULT hr = vboxDrvCfgInfQueryModelsSectionName(hInf, &lpszModels, NULL); 354 NonStandardLogRelCrap((__FUNCTION__ ": vboxDrvCfgInfQueryModelsSectionName returned lpszModels = (%S)", lpszModels)); 354 355 if (hr != S_OK) 355 356 { … … 367 368 { 368 369 hr = vboxDrvCfgInfQueryKeyValue(&InfCtx, 2, &lpszPnPId, NULL); 370 NonStandardLogRelCrap((__FUNCTION__ ": vboxDrvCfgRegQueryKeyValue for models (%S) returned lpszPnPId (%S) \n", lpszModels, lpszPnPId)); 371 369 372 if (hr != S_OK) 370 373 { … … 488 491 { 489 492 list.add(pDrvDetail->InfFileName); 493 NonStandardLogRelCrap((__FUNCTION__": %S added to list", pDrvDetail->InfFileName)); 490 494 } 491 495 } … … 505 509 if (dwErr == ERROR_NO_MORE_ITEMS) 506 510 { 511 NonStandardLogRelCrap((__FUNCTION__": dwErr == ERROR_NO_MORE_ITEMS -> search was finished ")); 507 512 break; 508 513 } … … 557 562 VBoxDrvCfgStringList list(128); 558 563 HRESULT hr = vboxDrvCfgCollectInfsSetupDi(pGuidClass, lpszPnPId, list); 564 NonStandardLogRelCrap((__FUNCTION__": vboxDrvCfgCollectInfsSetupDi returned %d devices with PnPId %S and class name %S", list.size(), lpszPnPId, lpszClassName)); 559 565 if (hr == S_OK) 560 566 { … … 575 581 576 582 vboxDrvCfgInfEnumerationCallback(pRel, &Context); 577 // NonStandardLogRelCrap(("inf :%S\n", list.get(i)));583 NonStandardLogRelCrap((__FUNCTION__": inf = %S\n", list.get(i))); 578 584 } 579 585 } … … 633 639 PINFENUM_CONTEXT pContext = (PINFENUM_CONTEXT)pCtxt; 634 640 DWORD dwErr; 635 // NonStandardLogRelCrap(("vboxDrvCfgInfEnumerationCallback: pFileName (%S)\n", pFileName));636 641 NonStandardLogRelCrap((__FUNCTION__": lpszFileName (%S)\n", lpszFileName)); 642 NonStandardLogRelCrap((__FUNCTION__ ": pContext->InfInfo.lpszClassName = (%S)", pContext->InfInfo.lpszClassName)); 637 643 HINF hInf = SetupOpenInfFileW(lpszFileName, pContext->InfInfo.lpszClassName, INF_STYLE_WIN4, NULL /*__in PUINT ErrorLine */); 638 644 if (hInf == INVALID_HANDLE_VALUE) … … 644 650 NonStandardLogCrap((__FUNCTION__ ": SetupOpenInfFileW err dwErr=%ld\n", dwErr)); 645 651 } 646 652 else 653 { 654 NonStandardLogCrap((__FUNCTION__ ": dwErr == ERROR_CLASS_MISMATCH")); 655 } 647 656 return true; 648 657 } … … 650 659 LPWSTR lpszPnPId; 651 660 HRESULT hr = vboxDrvCfgInfQueryFirstPnPId(hInf, &lpszPnPId); 661 NonStandardLogRelCrap((__FUNCTION__ ": vboxDrvCfgInfQueryFirstPnPId returned lpszPnPId = (%S)", lpszPnPId)); 662 NonStandardLogRelCrap((__FUNCTION__ ": pContext->InfInfo.lpszPnPId = (%S)", pContext->InfInfo.lpszPnPId)); 652 663 if (hr == S_OK) 653 664 { … … 694 705 Context.Flags = Flags; 695 706 Context.hr = S_OK; 707 NonStandardLogRelCrap((__FUNCTION__": Calling vboxDrvCfgEnumFiles(wszInfDirPath, vboxDrvCfgInfEnumerationCallback, &Context)")); 696 708 hr = vboxDrvCfgEnumFiles(wszInfDirPath, vboxDrvCfgInfEnumerationCallback, &Context); 697 709 NonStandardAssert(hr == S_OK); -
trunk/src/VBox/Installer/win/InstallHelper/VBoxInstallHelper.cpp
r52824 r53038 503 503 static MSIHANDLE g_hCurrentModule = NULL; 504 504 505 static 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 505 521 static VOID netCfgLoggerCallback(LPCSTR szString) 506 522 { … … 528 544 529 545 VBoxNetCfgWinSetLogging((LOG_ROUTINE)netCfgLoggerCallback); 546 /* uncomment next line if you want to add logging information from VBoxDrvCfg.cpp */ 547 // VBoxDrvCfgLoggerSet(vboxDrvLoggerCallback, NULL); 530 548 } 531 549 … … 1083 1101 if (SUCCEEDED(hr)) 1084 1102 { 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 */); 1086 1104 if (FAILED(hr)) 1087 1105 { 1088 1106 logStringW(hModule, L"RemoveHostOnlyInterfaces: NetAdp uninstalled successfully, but failed to remove INF files"); 1089 1107 } 1108 else 1109 logStringW(hModule, L"RemoveHostOnlyInterfaces: NetAdp uninstalled successfully"); 1110 1090 1111 } 1091 1112 else … … 1172 1193 if (SUCCEEDED(hr)) 1173 1194 { 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); 1177 1196 } 1178 1197 else -
trunk/src/VBox/Installer/win/VBoxMergeNetAdpSeq.wxi
r52824 r53038 39 39 <!-- First stop the existing host-only interfaces on update ... --> 40 40 <Custom Action="ca_StopHostOnlyInterfaces" After="InstallInitialize" > 41 <![CDATA[(UPGRADINGPRODUCTCODE) OR(REMOVE="ALL")]]>41 <![CDATA[(UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")]]> 42 42 </Custom> 43 43 44 <Custom Action="ca_UninstallNetAdpArgs" Before="ca_UninstallNetAdp" > 44 <![CDATA[( Installed) AND (REMOVE="ALL")]]>45 <![CDATA[(UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")]]> 45 46 </Custom> 46 <Custom Action="ca_UninstallNetAdp" After="ca_ RemoveHostOnlyInterfaces" >47 <![CDATA[( Installed) AND (REMOVE="ALL")]]>47 <Custom Action="ca_UninstallNetAdp" After="ca_StopHostOnlyInterfaces" > 48 <![CDATA[(UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")]]> 48 49 </Custom> 49 50 50 51 <?endif ?> 51 52
Note:
See TracChangeset
for help on using the changeset viewer.