Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determine if uninstall was called from upgrade

Status
Not open for further replies.

xoopus

Programmer
Oct 8, 2003
11
US
When running the installation for a newer version of an application the previous version is uninstalled. I have a custom action in my uninstall that I only want to call if the user is uninstalling, not if the user is upgrading. I tried setting registry flags in the onbeforeinstall custom action but that is executed after the uninstall of the previous install.

Is there a way to determine weather the uninstall is being called by a newer install or because the user chose to uninstall the application?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top