Search code examples
windowswindows-installerupgradeinstallshieldinstallshield-le

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


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 ?


Solution

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