如何检测是否安装了.NET Framework修补程序

根据
Microsoft Download Page for .NET Framework 3.5 SP1,我应该在安装.NET Framework包后立即安装
KB959209
KB967190

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.

我在安装程序中处理.NET Framework的安装(Inno Setup).那么如何检测是否安装了这两个修补程序,以便我可以决定是否下载并安装它们?我不想用不必要的步骤打扰用户,因此首选自动和被动解决方案.

最佳答案 我有一个类似的问题,我需要检测是否在安装时安装了所需的KB.我的解决方案是创建一个使用DTF的自定义EXE – 部署工具基础来检查KB,如果没有安装,则下载并以被动模式安装它.然后,您可以从安装过程中调用此自定义EXE,它可以处理检测相应修补程序的详细信息.讨论可以在以下位置找到:

Detect and require a Windows QFE/patch for during installation

点赞