Search code examples
visual-studio-2010installshield-le

Configuring InstallShield LE to remove previous versions built using Visual Studio Setup Projects


Using Visual Studio 2010, I would like to switch over to using InstallShield LE instead of the Visual Studio Setup Project.

In the Setup Project, an option RemovePreviousVersions existed which was great for making an installer that would essentially do an in-place upgrade when a new version is released.

Now with InstallShield LE, I've updated the version and generated a new ProductCode, but after running the installer, the previous version is still present.

What do I need to do so that the InstallShield-built project can remove the previous version which was built with the VS Setup Project?


Solution

  • You can try this:

    • open your old MSI with Orca and get its UpgradeCode from Property table
    • in your InstallShield LE project go to "General Information" in solution explorer
    • make sure that the "Upgrade Code" field is set to your old MSI UpgradeCode

    You should also make sure that ALLUSERS property has the same value for both versions (it's the same approach). You can read more about upgrades here: http://msdn.microsoft.com/en-us/library/aa369786(VS.85).aspx