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}