简体   繁体   English

通过InstallShield中的Config文件传递先决条件检查信息

[英]Pass pre-requisite check information from Config file in InstallShield

I'm trying to achieve a requirement in Pre-requisites part of my package: The package should be able to check for the presence of a specific Operating System or Microsoft Patch on the target machine and block installation if the specified OS&patch is not found. 我试图在我的软件包的先决条件部分中达到要求:该软件包应该能够检查目标计算机上是否存在特定的操作系统或Microsoft补丁程序,并且如果找不到指定的OS&patch,则阻止安装。 I want to pass this information from Configuration xml or ini file, so that installer need not to be edited and build again for changes in requirements. 我想从Configuration xml或ini文件中传递此信息,因此无需编辑安装程序并再次构建以适应需求的变化。

Any ideas on how to achieve this!! 关于如何实现这一目标的任何想法!

Microsoft typically publishes the files affected by patches and their version number. Microsoft通常会发布受修补程序及其版本号影响的文件。 You can use that to determine if the patch is applied. 您可以使用它来确定是否应用了补丁。

As for the config file portion, I've never done this as if I make a change to an installer I generally want to rebuild it. 至于配置文件部分,我从来没有做过,就像我对安装程序进行了更改一样,我通常都想重建它。 I guess you could write a custom action to replace AppSearch/LaunchConditions and have it be data driven from an XML file instead of the built in tables but I'm still not sure I'd do it. 我猜您可以编写一个自定义操作来替换AppSearch / LaunchConditions,并让它是由XML文件而不是内置表驱动的数据,但我仍然不确定是否会这样做。

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

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