更新使用InstallShield LE现有安装InstallShield、LE

2023-09-03 08:53:10 作者:血染墨冢

我们已经得到了AA很简单WinForms应用程序。我创建使用InstallShield LE安装其上的首次安装工作正常。我想,用户将能够运行安装也用于更新现有副本。问题是,我无法弄清楚什么是正确的方法来创建此更新程序包。我尝试过:

We've got a a quite simple WinForms application. I've created an installation using InstallShield LE which works fine on the first install. I'd like that users will be able to run the installation also for updating an existing copy. The problem is that I can't figure out what is the right way to create this update package. I've tried:

更改产品code - 安装工程,但一个新的条目中添加正在创建/删除程序和旧条目不会被删除

Changing the Product Code - the installation works but a new entry is being created in Add/Remove programs and the old entry is not removed.

保持产品code - Windows安装的喊声:已经安装了另一个版本,该产品的

Keeping the Product Code - Windows installer shouts: "another version of this product is already installed"

试图与其他$ C $玩CS(升级code /产品版本) - 不利于

Tried to play with other codes (Upgrade Code / Product Version) - doesn't help

有没有简单的方法来创建这个?也许事情告诉安装程序删除其previous版本,如果存在吗?

Is there any easy way to create this? Maybe something to tell the installer to remove its previous version if exist?

推荐答案

在您的InstallShield安装项目,你应该做到以下几点:

In your InstallShield setup project, you should do the following:

选择分支:整理您的安装的 - >的升级路径的 添加新的的升级路径的,比preSS的的取消的按钮 新的升级路径的默​​认属性的,如果你不打算改变的产品版本的从以下分支机构不应该被改变:整理您的设置的 - >的一般信息的。如果您计划更改的产品版本的,应该比你有以下的升级路径玩的属性:民版的/ _包括最低Version_,最高版本的/ _包括最高版本_。 在每次你需要创建一个新的设置,从下面的分支修改的产品code 的时间:整理您的安装的 - >的一般信息。 请注意,升级code 的应当保持不变。 select branch: Organize your setup -> Upgrade Paths add new upgrade path and than press the cancel button the default properties of the new upgrade path should not be changed if you do not plan to change the Product version from the following branch: Organize your setup -> General Information. If you plan to change the Product version, than you should play with the following upgrade path properties: Min Version/_Include Min Version_, Max Version/_Include Max Version_. every time you need to create a new setup, change the Product code from the following branch: Organize your setup -> General Information. please be aware that the Upgrade Code should NEVER be changed.