From eef6360643082d712ffd13a934fd7d7a2e3a017f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sun, 26 Jan 2020 14:07:49 +0100 Subject: [PATCH] Fixed MSVC redist checks --- pkg/gpxsee.nsi | 4 ++-- pkg/gpxsee64.nsi | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/gpxsee.nsi b/pkg/gpxsee.nsi index 502ee6b6..8d5e7f87 100644 --- a/pkg/gpxsee.nsi +++ b/pkg/gpxsee.nsi @@ -150,9 +150,9 @@ Section "MSVC runtime" SEC_MSVC DetailPrint "Checking whether Visual C++ 2017 runtime is already installed..." ${If} ${RunningX64} - ReadRegDword $R0 HKLM "SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\x86" "Version" + ReadRegStr $R0 HKLM "SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\x86" "Version" ${Else} - ReadRegDword $R0 HKLM "SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x86" "Installed" + ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x86" "Version" ${EndIf} ${If} $R0 >= "v14.24.28127.04" diff --git a/pkg/gpxsee64.nsi b/pkg/gpxsee64.nsi index d1596656..f756b768 100644 --- a/pkg/gpxsee64.nsi +++ b/pkg/gpxsee64.nsi @@ -156,7 +156,7 @@ Section "MSVC runtime" SEC_MSVC SectionIn RO DetailPrint "Checking whether Visual C++ 2017 runtime is already installed..." - ReadRegDword $R0 HKLM "SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\x64" "Version" + ReadRegStr $R0 HKLM "SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\x64" "Version" ${If} $R0 >= "v14.24.28127.04" DetailPrint "Visual C++ 2017 runtime is already installed, skipping install." ${Else}