全部,我知道以下方法来检查NSIS中的框架版本.对于.NET4.0 +我目前使用
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, goto the next key.
StrCpy $4 $3 1 0
StrCmp $4 "v" +1 goNext
StrCpy $4 …Run Code Online (Sandbox Code Playgroud) 是否存在从NSIS安装程序自动下载和安装.NET 4.0 Framework的标准/首选方法(如果计算机尚未安装)?
有几个例子可以在旧版本的框架上使用它,但看起来它们都不适用于4.0.在我自己一起破解某些东西之前,我想知道是否有人知道那里已有的东西.
感谢您的时间.