Check for .NET4.5+ with NSIS
问题 All, I am aware of the following methods to check the framework version in NSIS. For .NET4.0+ I currently use Function IsDotNetInstalled StrCpy $0 "0" StrCpy $1 "SOFTWARE\Microsoft\.NETFramework" ; Registry entry to look in. StrCpy $2 0 StartEnum: ; Enumerate the versions installed. EnumRegKey $3 HKLM "$1\policy" $2 ; If we don't find any versions installed, it's not here. StrCmp $3 "" noDotNet notEmpty ; We found something. notEmpty: ; Find out if the RegKey starts with 'v'. ; If it doesn't,