I have a .NET installer class to intall and uninstall the database file and some registry settings required by my application. These work fine, but I've started playing around with the upgrade features in AI, and I've come to realize that this setup will not work if I want to use the upgrade as the database will be uninstalled and reinstalled clean. Is there any way to not execute the custom install and uninstall functions if an application is being upgraded rather than being installed for the first time?
"OLDPRODUCTS" property is set on upgrade with the "ProductCode" of the older installed versions. This property will be empty if no older versions are found.
So to prevent your actions to be executed on upgrade condition them with following condition: NOT OLDPRODUCTS.
FOLLOW US
Get the latest news in Application Packaging