How to upgrade latest version of my application without uninstall the old version manually?

2.3k Views Asked by At

I have my project in visual studio and i am using installshield as my windows installer. When I am installing new updated version of my application it will shows

Another version of this product is automatically installed like this...

How can I install new version by overwriting my old version?

Is there any way to configure in installshield or give me any other way ?

3

There are 3 best solutions below

0
Piraisudan M On BEST ANSWER

Under The Upgrade Paths, create a new path. Leave the min version blank (unless you need it), include min version yes, Max version should be set to the version You are installing now. Include max version to yes.

Each time you are installing an update, Increase the Product version(If u want to change) in the General Information section. Click on a new Product Code in the General Information Section Do not change the upgrade code.

Go back to the upgrade path, and set the Max version to the same version you are deploying now.

And make sure the Upgrade code in the "General Information" and "Upgrade path" are same.

This process uninstalls previous version, and installs the latest. No duplicates in add/remove programs.

If any doubt on this, comment your question...

2
Doc On

The error that you're getting is because the ProductCode has not been changed. This code is what makes your product/installer unique. Generally to author the upgrade you'll need to change this code and make sure the UpgradeCode is the same so that it recognizes what is already installed.

Authoring upgrades is a much wider topic and far too much information then can be covered here. I would suggest this page for learning about Windows installer upgrading.

0
sobz On

Every upgraded version of install should have a different ProductCode. UpgradeCode is what tells the install package that this product has been installed. If ProductCode is also the same, install assumes you are installing the same product again. ProductCode needs to be different for each of the updated packages.