Setup InstallShield Limited Edition for VS2010 so

2020-02-09 06:05发布

问题:

I am working on a WPF desktop application and I am deploying through an install file generated by InstallShield Limited Edition. I would like the installer to prompt the user and remove any previous versions of the application before installing the new version. I suspect this is done via the Upgrade Paths option in InstallShield, but I can't get it figured out.

Answer goes to an explanation or a link to a decent how-to, tutorial or manual page that answers my question.

At the moment, when running the installer, I get: "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."

Thanks

回答1:

Try this:

  • in Solution Explorer go to "General Information" page
  • increase the Product Version
  • generate a new Product Code
  • make sure that ALLUSERS property has the same value as in the old package
  • go to "Upgrade Paths" page and add the old MSI
  • build and install your new version

When running this new package it should automatically detect and remove older versions.

You can read about Windows Installer upgrades here: http://msdn.microsoft.com/en-us/library/aa370579(VS.85).aspx