Failed to get MSI property in UPGRADINGPRODUCTCODE, WIX_UPGRADE_DETECTED
问题 I wanted to skip some of my custom actions during upgrade, uninstallDriver , to achieve this I have tried to retrieve property WIX_UPGRADE_DETECTED and UPGRADINGPRODUCTCODE , but both of them are not set. Sample code: UninstallDriver(MSIHANDLE hInstall) { char szBuff[1024]; DWORD dwValue = 0; OutputDebugStringA("UninstallDriver"); MsiGetPropertyA(hInstall, "UPGRADINGPRODUCTCODE", szBuff, &dwValue); OutputDebugStringA("UPGRADINGPRODUCTCODE");OutputDebugStringA(szBuff); MsiGetPropertyA(hInstall