开发者

Setup InstallShield Limited Edition for VS2010 so it automatically uninstalls previous versions of my application

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 ex开发者_开发百科isting version of this product, use Add/Remove Programs on the Control Panel."

Thanks


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜