Detect an upgrade

Got a problem you cannot solve? Try here.
Post Reply
rasmusw
Posts: 44
Joined: Tue May 19, 2009 3:06 am

Detect an upgrade

Post by rasmusw »

Hello.
When upgrading my product, I want to keep some registry settings, but when uninstalling completely, I want to remove them all.

When upgrading a product, the IA wizard will uninstall the previous version first.
Is there a way to detect that this uninstallation is part of an upgrade, and not a user-initiated uninstallation?

Thank you.

Regards,
Rasmus
mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: Detect an upgrade

Post by mills »

You can reference the variable, NEEDSUPGRADE

However, keep in mind that you cannot perform a selective or partial uninstall, unless you manually delete everything you want uninstalled or the files/registry keys are marked permanent.
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.
Post Reply