2

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 ?

Piraisudan M
  • 55
  • 10
  • Is the quoted text an actual error message? If so, is that really what it says? – IInspectable Nov 02 '17 at 20:01
  • "Another version of the product is already installed. Installation of this version cannot continue. To configure or remove the existing version of the product, use Add\Remove Programs on the Control Panel." like this – Piraisudan M Nov 04 '17 at 07:23
  • Please update your question to fix the error message. – IInspectable Nov 04 '17 at 07:26
  • I'm developing one product in visual studio, I'm using installshield as windows installer. I want to do minimum upgrades like 3.1.1 to 3.1.2 without uninstall existing version "manually" . How Can I configure in installshield update automatically for next versions. – Piraisudan M Nov 06 '17 at 06:39

3 Answers3

3

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.

Doc
  • 698
  • 3
  • 16
  • If I change my product code another version of my product exist separately, But I want to uninstall existing version and install new version while installing my new version like 3.1.1 to 3.1.2. Without Uninstalling the existing version manually – Piraisudan M Nov 06 '17 at 06:42
  • What you describe is a major upgrade. Follow the documentation for how to perform this and the MSI should automatically uninstall your old version. – Doc Nov 07 '17 at 12:44
0

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...

Piraisudan M
  • 55
  • 10
0

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.

sobz
  • 19
  • 2