[feat] remove vc runtime from nsis script since using static linking

This commit is contained in:
dijunkun
2025-10-16 16:03:27 +08:00
parent b8535fff6f
commit 92fd7f2e89

View File

@@ -47,27 +47,6 @@ InstallDir "$PROGRAMFILES\CrossDesk"
InstallDirRegKey HKCU "Software\${PRODUCT_NAME}" "InstallDir"
ShowInstDetails show
Function CheckVCRedist
ReadRegDWORD $0 HKLM "SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x64" "Installed"
StrCmp $0 1 done
DetailPrint "Downloading Microsoft Visual C++ Redistributable..."
inetc::get /popup "" /caption "Downloading VC++ Runtime..." \
"https://aka.ms/vs/17/release/vc_redist.x64.exe" \
"$TEMP\\vc_redist.x64.exe"
Pop $0
StrCmp $0 "OK" +2
MessageBox MB_OK "Failed to download VC++ Redistributable. Please install it manually." IDOK done
ExecWait '"$TEMP\\vc_redist.x64.exe" /quiet /norestart'
done:
FunctionEnd
Section "VC++ Runtime"
Call CheckVCRedist
SectionEnd
Section "MainSection"
; Check if CrossDesk is running
StrCpy $1 "crossdesk.exe"