We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

clsmith66
Posts: 4
Joined: Fri Mar 02, 2007 5:52 pm

Conditional Install/Uninstall Actions

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?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

"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.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”