.net - 使用 Installshield 2010 检查 .NET Framework 4.5 是否安装

标签 .net version .net-4.5 installshield-2010

我正在使用InstallShield 2010。我想检查计算机上是否安装了.NET Framework 4.5。

我可以从注册表中检查 .NET Framework 4.0 是否安装,但我无法找到 .NET Framework 4.5 的任何注册表项。

最佳答案

根据此处的 MSDN 文章:http://msdn.microsoft.com/en-us/library/hh925568(v=vs.110).aspx

To find the installed .NET Framework versions manually (versions 4.5 and later)

  • On the Start menu, choose Run.
  • In the Open box, enter regedit.exe. (You must have administrative credentials to run regedit.exe.)
  • In the Registry Editor, open the following subkey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full Check for a DWORD value named Release. The existence of the Release DWORD indicates that the .NET Framework 4.5 or newer has been installed on that computer.

换句话说,在 InstallShield 下,检查注册表位置 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full 是否存在 Release DWORD

关于.net - 使用 Installshield 2010 检查 .NET Framework 4.5 是否安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19265017/

相关文章:

.net - 如何创建 MSA ID 和密码以使用 SDK 创建 Azure Bot 服务

mysql - 安装不同版本的WAMP后如何恢复MYSQL数据库?

java - 为什么 pom.xml 要求依赖版本?

java - 如何在关系数据库中保留大字符串字段的编辑历史

c# - .NET 4.5 异步等待和重载方法

c# - .NET - System.Collections.Immutable 某处是否有单向链表?

.net - 您如何显示 .Net T4 生成的代码(不是输出)?

c# - 以 WAV 格式从麦克风捕获流

c# - 面向 .NET 4.5.1 和 Windows 8.1/WP8.1 的库中的套接字

c# - 类级别的 TestCategory 而不是测试方法