Wix Upgradingproductcode
CustomAction on Uninstall but not upgrade. I have a custom action that should only run on uninstall, but not run during an upgrade. After browsing the list archives. During an installation or major upgrade, if a user has pinned the application to their task bar, then after the installation has completed, the task bar shortcut is.
(You would have the opportunity to download individual files on the 'Thank you for downloading' page after completing your download.) • Files larger than 1 GB may take much longer to download and might not download correctly. Srpska latinica windows 7. In this case, you will have to download the files individually.
I would like to modify an MSI installer (created through ) to delete an entire directory on uninstall. I understand the RemoveFile and RemoveFolder options in WiX, but these are not robust enough to recursively delete an entire folder that has content created after the installation. I noticed the similar Stack Overflow question, but I was wondering if this could be done more simply using a call to a batch script to delete the folder. This is my first time using WiX, and I'm still getting the hang of. What would be a basic example of a custom action that will run a batch script on uninstall?
EDIT: Perhaps look at the answer immediately below. This topic has been a headache for long time. I finally figured it out. There are some solutions online, but none of them really works.
And of course there is no documentation. So in the chart below there are several properties that are suggested to use and the values they have for various installation scenarios: So in my case I wanted a CA that will run only on uninstalls - not upgrades, not repairs or modifies. According to the table above I had to use (NOT UPGRADINGPRODUCTCODE) AND (REMOVE='ALL') And it worked! There are multiple problems with, also property names are case sensitive, Installed is the correct spelling ( INSTALLED will not work). The table above should've been this: Also assuming a full repair & uninstall the actual values of properties could be: The documentation says: In these expressions, you can use property names (remember that they are case sensitive).
The properties are documented at the Windows Installer Guide (e.g. ) EDIT: Small correction to the first table; evidently 'Uninstall' can also happen with just REMOVE being True. Low end pc survival games. You can do this with a custom action. You can add a refrence to your custom action under:. Installed AND NOT UPGRADINGPRODUCTCODE Then you will also have to define your Action under:. Where FileCleanerEXE is a binary (in my case a little c++ program that does the custom action) which is also defined under:.
The real trick to this is the Installed AND NOT UPGRADINGPRODUCTCODE condition on the Custom Action, with out that your action will get run on every upgrade (since an upgrade is really an uninstall then reinstall). Which if you are deleting files is probably not want you want during upgrading.