Just an update I have figured out that the wyupdate.exe /uninstall is returning Error code 3 for cancelling of the process. I am not sure where this is coming from though.
I have been trying to get the wyUpdate.exe /uninstall to work with uninstalling with WIX.
I am currently trying with
<CustomAction Id="FileCleaner" Directory="APPLICATIONROOTDIRECTORY" ExeCommand="[#wyUpdate.exe] /uninstall" />
<InstallExecuteSequence> <Custom Action="FileCleaner" After='InstallValidate'> Installed AND NOT UPGRADINGPRODUCTCODE</Custom> </InstallExecuteSequence>
But when I try to uninstall wyUpdate is crashing and I cannot seem to get it to work.
Anyone have any better solution?
Just an update I have figured out that the wyupdate.exe /uninstall is returning Error code 3 for cancelling of the process. I am not sure where this is coming from though.
You need to run wyUpdate /uninstall with admin privileges. In Wix, it's like this: http://stackoverflow.com/a/24486554/124805