[英]How to stop installation if older version of software installed in windows?
I am facing a problem while packaging my latest software version in windows 7.My latest version of software is not compatible for upgrade .So if a user already have old version of software , i have to stop the installation (disable next button in the installation windows)or give some notification to Customer to remove the older version. 在Windows 7中打包我的最新软件版本时遇到问题,我的最新版本软件不兼容升级 。因此,如果用户已经拥有旧版本的软件,则必须停止安装(禁用安装中的下一步按钮) Windows)或向客户发出一些通知,以删除较旧的版本。 Is it possible this in install shield(2015)? 这可能在install shield(2015)中吗?
You will probably want to follow the same mechanism as ISPreventDowngrade
uses. 您可能希望遵循与ISPreventDowngrade
使用的机制相同的机制。 In the Upgrades view, there is a major upgrade item configured as Detect Only. 在“升级”视图中,有一个主要的升级项目配置为“仅检测”。 Then in the Custom Action and Sequences view, there is an error action that only fires if the action property of that upgrade item is set. 然后,在“自定义操作和序列”视图中,只有设置了该升级项目的action属性后,才会触发错误操作。
If you duplicate both of those items with a new action property (and thus new condition), and change the upgrade item to find your earlier version range instead of future versions, you should be able to get the behavior you want. 如果您使用新的action属性(并因此使用新条件)复制这两个项目,并更改升级项目以查找较早的版本范围而不是将来的版本,则应该能够获得所需的行为。
If you expect there's a specific threshold of versions (ie upgrading from anything 1.0-4.0 to anything 5.0 or later requires this, but upgrading from 5.0 to 6.0 will not), you can configure the version range explicitly. 如果您期望存在特定的版本阈值(即,从1.0-4.0升级到5.0或更高版本需要此,但是从5.0升级到6.0则不需要),则可以显式配置版本范围。 If instead you expect you will always need this in the future, you can search for any previous version and let the upper range match your product. 相反,如果您希望将来始终需要此功能,则可以搜索任何以前的版本,并让上限与您的产品匹配。 Either can be changed for any release in the future. 将来任何发行版都可以更改。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.