我正在使用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/