Function
GetNetFrameworkVersion
;获取.Net Framework版本支持
Push $1
Push $0
ReadRegDWORD $0
HKLM “SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full”
“Install”
ReadRegDWORD $1
HKLM “SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full”
“Version”
StrCmp $0 1
KnowNetFrameworkVersion +1
ReadRegDWORD $0
HKLM “SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5”
“Install”
ReadRegDWORD $1
HKLM “SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5”
“Version”
StrCmp $0 1
KnowNetFrameworkVersion +1
ReadRegDWORD $0
HKLM “SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.0\Setup”
“InstallSuccess”
ReadRegDWORD $1
HKLM “SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.0\Setup”
“Version”
StrCmp $0 1
KnowNetFrameworkVersion +1
ReadRegDWORD $0
HKLM “SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727”
“Install”
ReadRegDWORD $1
HKLM “SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727”
“Version”
StrCmp $1
“” +1 +2
StrCpy $1
“2.0.50727.832”
StrCmp $0 1
KnowNetFrameworkVersion +1
ReadRegDWORD $0
HKLM “SOFTWARE\Microsoft\NET Framework Setup\NDP\v1.1.4322”
“Install”
ReadRegDWORD $1
HKLM “SOFTWARE\Microsoft\NET Framework Setup\NDP\v1.1.4322”
“Version”
StrCmp $1
“” +1 +2
StrCpy $1
“1.1.4322.573”
StrCmp $0 1
KnowNetFrameworkVersion +1
ReadRegDWORD $0
HKLM “SOFTWARE\Microsoft\.NETFramework\policy\v1.0”
“Install”
ReadRegDWORD $1
HKLM “SOFTWARE\Microsoft\.NETFramework\policy\v1.0”
“Version”
StrCmp $1
“” +1 +2
StrCpy $1
“1.0.3705.0”
StrCmp $0 1
KnowNetFrameworkVersion +1
StrCpy $1
“not .NetFramework”
KnowNetFrameworkVersion:
Pop $0
Exch $1
FunctionEnd
|