Installing over Previous Installs - Advanced Installer Community
MartinStevens
Posts: 2
Joined: Sun Feb 14, 2016 9:49 pm

Installing over Previous Installs

Hi

I’m trying to get advanced installer to install over any previous install without requiring the user to do a manual uninstall first. This used to work on my project but seems to have stopped working at some point after an advanced installer update.
The way we have always used it is to keep the Version Number, Product Code, and Upgrade Codes the same every time we do a build but with different content. The requirement being that any installer can be installed over the top regardless of when it was created.

Our application has its own updater hence we use Advanced Installer in quite a simple fashion.

Whenever trying to install over the top of a previous installer pack I get the following dialog >>>>> “Another version of this product is already installed. Installation of this version cannot continue. To configure or remove this product use Add/Remove Programs on the Control Panel.”

Does anyone have any advice?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Installing over Previous Installs

Hi and welcome to Advanced Installer forums.

Please keep in mind that this is the Windows Installer normal behavior when the Product Version and the Product Code of an application is not changed. You can see more details in the Why do I receive the "Another version of this product is already installed" message FAQ article.

In order to avoid that message you can either uncheck the "Register product with Windows Installer" option from the "Product Details" page (in this case the product will not be displayed in the "Programs and Features" list from the Control Panel) or check the "Uninstall a package with the same version (if found)" option from the "Builds" page (in this case the already installed version will be automatically uninstalled before the new one is installed).

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MartinStevens
Posts: 2
Joined: Sun Feb 14, 2016 9:49 pm

Re: Installing over Previous Installs

Thanks Eusebiu

Once I set the Package Type to EXE the bootstrapper options became available and I was able to select the "Uninstall a package with the same version (if found)" check box.

So it seems that this option is not available/visible when setting the Package Type to MSI, presumable since M$ does not support this functionality as you said.

Regards

Martin
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Installing over Previous Installs

You're welcome Martin.

Indeed, the "Uninstall a package with the same version (if found)" option is available only in an EXE package, not MSI. Just let us know anytime you have a problem.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
stevemaughan
Posts: 4
Joined: Wed Jul 08, 2020 2:30 pm

Re: Installing over Previous Installs

Eusebiu wrote: ↑Mon Feb 15, 2016 9:11 am Hi and welcome to Advanced Installer forums.

Please keep in mind that this is the Windows Installer normal behavior when the Product Version and the Product Code of an application is not changed. You can see more details in the Why do I receive the "Another version of this product is already installed" message FAQ article.

In order to avoid that message you can either uncheck the "Register product with Windows Installer" option from the "Product Details" page (in this case the product will not be displayed in the "Programs and Features" list from the Control Panel) or check the "Uninstall a package with the same version (if found)" option from the "Builds" page (in this case the already installed version will be automatically uninstalled before the new one is installed).

Best regards,
Eusebiu
I'm creating a web installer. On the "Builds" page I have checked "Uninstall a package with the same version (if found)" and I still get the same message "Another version of this product is already installed". Is this a bug in Advanced Installer i.e. should the option be grayed out for web installers?

What do you suggest for web installers that want to avoid this message?

Thanks,

Steve
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Installing over Previous Installs

Hi Steve,

Please increase the Product Version of your product in order to get this to work. If you do not want to change the Product Version (not recommended) you can use the "Uninstall a package with the same version (if found)" option from the "Builds" page which I've just tested and worked as expected for me.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”