mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-01-22 23:08:50 +08:00
Skip running vc_redist.x64.exe if it's already installed (#2733)
This commit is contained in:
parent
6a45f168ba
commit
90405e402f
1 changed files with 9 additions and 1 deletions
|
@ -31,7 +31,15 @@ Section "Install"
|
||||||
SetOutPath "$INSTDIR"
|
SetOutPath "$INSTDIR"
|
||||||
|
|
||||||
File "bin\vc_redist.x64.exe"
|
File "bin\vc_redist.x64.exe"
|
||||||
ExecWait '"$INSTDIR\vc_redist.x64.exe" /install /quiet /norestart'
|
|
||||||
|
; Check if the redistributable is installed
|
||||||
|
ReadRegDWORD $0 HKLM "SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x64" "Installed"
|
||||||
|
${If} $0 == 1
|
||||||
|
DetailPrint "Visual C++ Redistributable is already installed. Skipping installation."
|
||||||
|
${Else}
|
||||||
|
DetailPrint "Visual C++ Redistributable is not installed. Installing now..."
|
||||||
|
ExecWait '"$INSTDIR\vc_redist.x64.exe" /install /quiet /norestart'
|
||||||
|
${EndIf}
|
||||||
Delete "$INSTDIR\vc_redist.x64.exe"
|
Delete "$INSTDIR\vc_redist.x64.exe"
|
||||||
|
|
||||||
File /a /r "bin\Livebook-Release\"
|
File /a /r "bin\Livebook-Release\"
|
||||||
|
|
Loading…
Reference in a new issue