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

喜欢而已 提交于 2019-11-27 21:29:04

问题


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



来源:https://stackoverflow.com/questions/6414143/setup-installshield-limited-edition-for-vs2010-so-it-automatically-uninstalls-pr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!