配置InstallShield LE删除使用Visual Studio安装项目构建的早期版本 [英] Configuring InstallShield LE to remove previous versions built using Visual Studio Setup Projects
问题描述
使用Visual Studio 2010,我想切换到使用InstallShield LE而不是Visual Studio安装项目.
Using Visual Studio 2010, I would like to switch over to using InstallShield LE instead of the Visual Studio Setup Project.
在安装项目中,存在一个选项RemovePreviousVersions
,该选项非常适合制作一个安装程序,该安装程序在发布新版本时实质上会进行就地升级.
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.
现在使用InstallShield LE,我已经更新了该版本并生成了一个新的ProductCode,但是运行安装程序后,仍然存在以前的版本.
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.
我需要怎么做才能使InstallShield构建的项目可以删除由VS安装项目构建的先前版本?
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?
推荐答案
您可以尝试以下操作:
- 使用 Orca 打开旧的MSI并从属性表中获取其UpgradeCode
- 在您的InstallShield LE项目中,转到解决方案资源管理器中的常规信息"
- 确保将升级代码"字段设置为您的旧MSI升级代码
- 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
还应该确保ALLUSERS属性在两个版本中都具有相同的值(方法相同).您可以在此处阅读有关升级的更多信息: http://msdn. microsoft.com/en-us/library/aa369786(VS.85).aspx
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
这篇关于配置InstallShield LE删除使用Visual Studio安装项目构建的早期版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!