Uninstall product with same version using script - 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!

issa
Posts: 4
Joined: Tue Aug 14, 2012 7:55 am

Uninstall product with same version using script

Hi

I have an application with vesion 1.0.1. I installed this in my system. After that I did some modification and made another build without changing product verion.

When I try to install this, I am getting the following message "Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel."

Instead of doing uninstall manually, I need to ask user whether he need to uninstall, and if user selects Yes, then I need to do uninstall first and then install. Is it possible ?

Can some one please help me to fix this?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Uninstall product with same version using script

Hello and welcome to Advanced Installer forums,

Here's "Why do I receive the "Another version of this product is already installed" message?" FAQ with the answer.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
issa
Posts: 4
Joined: Tue Aug 14, 2012 7:55 am

Re: Uninstall product with same version using script

If you don't want to create a new version of the package, you need to uninstall the original MSI before installing the modified one.

Is this the step that I need to follow to fix this?
Do I need to do this manually or is it possible using a script? This is because, first i need to ask user whether to uninstall application before doing uninstall.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Uninstall product with same version using script

Hello,

This error can only occur on development machines during the installer's authoring process. You don't need to consider preventing it on your clients' machines.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
issa
Posts: 4
Joined: Tue Aug 14, 2012 7:55 am

Re: Uninstall product with same version using script

Thanks Mihai

Return to “Common Problems”