I'm trying to run a custom action based on the following conditions:
Execution Stage Condition: Regular Uninstall
Condition: UILevel = 3 OR UILevel = 4 AND InstallMode = "Remove" And REMOVE="ALL" AND NOT UPGRADINGPRODUCTCODE
My problem is that UPGRADINGPRODUCTCODE isn't getting set by the newer version. I've tried placing the custom action between InstallValidate and RemoveExistingProdcuts, after RemoveExistingProducts, after ProcessComponents and before MsiUnpublishAssemblies. I've tried Immediately and I've tried deferred.
Regardless of where and when I place the custom action, it runs and UPGRADINGPRODCUTCODE is blank.
I've attached an .aip illustrating my issues. I've also noticed that InstallMode is always "Typical" (never remove) regardless of how I try to uninstall my application (upgrade, control panel or re-running the MSI) (edit)yet the custom action still runs (shouldn't run unless InstallMode is "Remove")(/edit). I'm clearly missing something here.
Thank you,
Adam Cohen
FOLLOW US
Get the latest news in Application Packaging