如何检测是否安装了 .NET Framework 修补程序
根据 Microsoft 下载页面对于 .NET Framework 3.5 SP1,我应该安装 KB959209 和
重要提示:安装 .NET Framework 3.5 SP1 软件包(引导程序或完整软件包)后,您应立即安装更新 KB959209 以解决一组已知的应用程序兼容性问题。 此外,在 Windows Vista x64 和 Windows Server 2008 x64 上,安装更新 KB967190 以解决 XPS 文档的文件关联问题。
我在安装程序中处理 .NET Framework 的安装 (Inno Setup)。那么如何检测这两个修补程序是否已安装,以便我决定是否下载并安装它们?我不想用不必要的步骤打扰用户,因此尽可能自动和被动的解决方案是首选。
According to Microsoft Download Page for .NET Framework 3.5 SP1, I should install KB959209 and KB967190 immediately after installing the .NET Framework package:
IMPORTANT: After installing the .NET Framework 3.5 SP1 package (either the bootstrapper or the full package) you should immediately install the update KB959209 to address a set of known application compatibility issues.
In addition, on Windows Vista x64 and Windows Server 2008 x64, install the update KB967190 to address a file association issue for XPS documents.
I handle the installation of the .NET Framework in my installer (Inno Setup). So how do I detect if those two hotfixes are installed, so I can decide whether to download them and install them? I don't want to bother the user with unnecessary steps, so as automatic and passive solution as possible is preferred.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我遇到了类似的问题,我需要在安装时检测是否安装了所需的知识库。我的解决方案是创建一个自定义 EXE,它使用 DTF - 部署工具基础来检查 KB,如果未安装,则以被动模式下载并安装它。然后,您可以从安装过程中调用此自定义 EXE,它可以处理检测适当修补程序的详细信息。讨论可以在以下位置找到:
检测并在安装过程中需要 Windows QFE/补丁
I had a similar issue in which I needed to detect if a required KB was installed at install time. My solution was to create a custom EXE that uses DTF - Deployment Tools Foundation to check for the KB, and download and install it in passive mode if it is not installed. You can then call this custom EXE from your install process and it can handle the details of detecting the appropriate Hotfix. The discussion can be found at:
Detect and require a Windows QFE/patch for during installation