Uninstall old version - Advanced Installer Community

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!

FGump
Posts: 65
Joined: Thu Jan 05, 2006 7:23 pm

Uninstall old version

After looking at another similar post still can't figure out how to get AI to uninstall the my previous (old) version of my application first and then install the new version. This is the same thing AI does when a new version is released. Each time I make a new MSI a message box is displayed stating to uninstall/remove the previous version first. I want to automate this.

Under the "Upgrades" I have "Automatically upgrade older product versions" checked. Is this correct? Also whenever I make a new build, I update the "Product Version" and I'm prompted with "Would you like to generate a new product code?" I always choose yes. Where am I making a mistake or what do I need to do to perform the automatic uninstall?

Thank you very much,

FGump
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Uninstall old version

Hi,

Please make sure that you follow these exact steps after building and installing the old version:
  • open the AIP (Advanced Installer Project file) you used to build the old package
  • make the modifications you want to include in the upgraded package
  • go to the "Product Details" page and increase the version of the package
  • when you move from this page you are prompted about changing the Product Code
  • answer "Yes" in order to change it (the old and new version of the package must have different Product Codes)
  • build and install the AIP
If the old version of the package is created with another tool you can use the Upgrades page to upgrade it.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”