Function net6
SetDetailsPrint textonly
DetailPrint "$(net6a)"
IfFileExists "$PROGRAMFILES64\dotnet\shared\
Microsoft.WindowsDesktop.App\6.0.13\PresentationFramework.dll" Skip 0
GetFunctionAddress $0 DownloadNetFramework6
;
等待下载.NET Framework 6.0.10...
BgWorker::CallAndWait
Skip:
Sleep 1000
FunctionEnd
;下载 .NET Framework 6
Function DownloadNetFramework6
inetc::get /WEAKSECURITY /CAPTION "$(DownloadNetFramework6a)" /BANNER "$(DownloadNetFramework6b)" "${NET_PACK_DL_URL}" "$TEMP\${NET_PACK_NAME}" /END $R9
Pop $0
StrCmp $0 "OK" dlok
MessageBox MB_OK|MB_ICONEXCLAMATION "$(DownloadNetFramework6c)" /SD IDOK
ExecShell "open" "
https://dotnet.microsoft.com/zh-cn/download/dotnet/thank-you/runtime-desktop-6.0.13-windows-x64-installer"
Abort
dlok:
ExecWait '$TEMP\${NET_PACK_NAME} /quiet /norestart'
FunctionEnd