简体   繁体   English

使用InstallShield LE更新现有安装

[英]Update an existing installation using InstallShield LE

We've got aa quite simple WinForms application. 我们有一个非常简单的WinForms应用程序。 I've created an installation using InstallShield LE which works fine on the first install. 我使用InstallShield LE创建了一个安装,它在第一次安装时工作正常。 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: 我试过了:

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. 更改产品代码 - 安装有效但在添加/删除程序中创建了新条目,并且未删除旧条目。

Keeping the Product Code - Windows installer shouts: "another version of this product is already installed" 保留产品代码 - Windows安装程序大喊:“已经安装了此产品的另一个版本”

Tried to play with other codes (Upgrade Code / Product Version) - doesn't help 试图玩其他代码(升级代码/产品版本) - 没有帮助

Is there any easy way to create this? 有没有简单的方法来创建它? Maybe something to tell the installer to remove its previous version if exist? 如果存在,可能会告诉安装程序删除其以前的版本?

In your InstallShield setup project, you should do the following: 在InstallShield安装项目中,您应该执行以下操作:

  • 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_. 如果您计划更改产品版本 ,则应使用以下升级路径属性: 最小版本 / _Include最小版本 _, 最大版本 / _Include最大版本 _。
  • 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. 请注意,不应更改升级代码
  1. copy guid from /General info/"product code" to /Upgrade PAth / Upgrade code 将/ guid / General info /“产品代码”复制到/升级PAth /升级代码
  2. copy guid from /General info/"product code" to /General info / Upgrade code 将/ guid /一般信息/“产品代码”复制到/一般信息/升级代码
  3. pres button "..." in /General info/product code to generate new guid 在一般信息/产品代码中按下“...”以生成新的guid

  4. Optional settings. 可选设置。 In /Upgrade PAth / Upgrade code 在/升级PAth /升级代码

    • disable max version 禁用最大版本
    • enable min version, for example you can put version 0.0.0.1 for minimal. 启用最小版本,例如,您可以将版本0.0.0.1放在最小。
    • disable languale dependency 禁用语言依赖

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM