配置 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并从属性表中获取它的升级代码
- 在您的 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屋!