简体   繁体   English

如果Windows中安装了较旧版本的软件,如何停止安装?

[英]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.

相关问题 当先前安装了旧版本时,如何使用 puppet 更新 windows package? - How do you update a windows package using puppet, when older version is previously installed? 如何检测Windows中是否安装了特定的软件? - How to detect whether a particular software is installed in windows? 如何在 Windows 10 上安装旧版本的 GCC - How to install older version of GCC on Windows 10 如何在 Windows 中安装旧版本的节点? - How to install older version of node in Windows? 单独的Windows帐户用于软件安装 - Separate Windows account for software installation Windows 打印屏幕在软件安装中不起作用 - Windows printscreen not working on Software Installation 使用ruby在Windows上查询已安装的软件 - Query installed software on windows with ruby 如何使用JavaScript或Node.js查找Windows / Mac中是否已安装软件 - How to find whether software is installed or not in windows/mac using javascript or nodejs Windows在卸载软件时如何找到安装位置 - How does Windows find the installed location when uninstalling software 当Windows Installer在安装的旧版本中具有相同的GUID时,会创建具有旧名称的文件夹 - Windows Installer creates folders with old names when they have the same GUID in older version that was installed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM