1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 11:45:53 +01:00

Always run the redistributables installer and let it decide what to do

(instead of an own and broken registry check with magic numbers)
This commit is contained in:
Martin Tůma 2020-01-26 15:58:20 +01:00
parent eef6360643
commit cb03c8a903
2 changed files with 11 additions and 28 deletions

View File

@ -148,22 +148,11 @@ Section "MSVC runtime" SEC_MSVC
SectionIn RO SectionIn RO
DetailPrint "Checking whether Visual C++ 2017 runtime is already installed..." SetOutPath $TEMP
${If} ${RunningX64} File "vc_redist.x86.exe"
ReadRegStr $R0 HKLM "SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\x86" "Version" ExecWait '"$TEMP\vc_redist.x86.exe" /install /quiet /norestart'
${Else} SetOutPath $INSTDIR
ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x86" "Version"
${EndIf}
${If} $R0 >= "v14.24.28127.04"
DetailPrint "Visual C++ 2017 runtime is already installed, skipping install."
${Else}
DetailPrint "Installing Visual C++ 2017 Redistributable..."
SetOutPath $TEMP
File "vc_redist.x86.exe"
ExecWait '"$TEMP\vc_redist.x86.exe" /install /quiet /norestart'
SetOutPath $INSTDIR
${EndIf}
SectionEnd SectionEnd
Section "OpenSSL" SEC_OPENSSL Section "OpenSSL" SEC_OPENSSL

View File

@ -155,17 +155,11 @@ Section "MSVC runtime" SEC_MSVC
SectionIn RO SectionIn RO
DetailPrint "Checking whether Visual C++ 2017 runtime is already installed..." SetOutPath $TEMP
ReadRegStr $R0 HKLM "SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\x64" "Version" File "vc_redist.x64.exe"
${If} $R0 >= "v14.24.28127.04" ExecWait '"$TEMP\vc_redist.x64.exe" /install /quiet /norestart'
DetailPrint "Visual C++ 2017 runtime is already installed, skipping install." SetOutPath $INSTDIR
${Else}
DetailPrint "Installing Visual C++ 2017 runtime..."
SetOutPath $TEMP
File "vc_redist.x64.exe"
ExecWait '"$TEMP\vc_redist.x64.exe" /install /quiet /norestart'
SetOutPath $INSTDIR
${EndIf}
SectionEnd SectionEnd
Section "OpenSSL" SEC_OPENSSL Section "OpenSSL" SEC_OPENSSL