aboutsummaryrefslogtreecommitdiff
path: root/windowsRuntimeInstaller
diff options
context:
space:
mode:
authorMark Young <marky@lunarg.com>2016-02-12 13:56:56 -0700
committerMark Young <marky@lunarg.com>2016-02-12 13:59:19 -0700
commitac7f5657bdc234f13e7ac9104d71d3542207bc50 (patch)
tree3c55e3423e52be078d46b421544896d6767f1e99 /windowsRuntimeInstaller
parent10f0de282ddaf72c2f4d66634c5e1b1e7276174c (diff)
downloadusermoji-ac7f5657bdc234f13e7ac9104d71d3542207bc50.tar.xz
windowsrtinstall: Fix errors on vcredist not being present before install.
We install the 2013 VC redistributables, but we first read the registry to determine if they were already installed. That registry read returns an error if they aren't already present. So, we clear the error after reading the registry. We also added the 32-bit 2013 VC redistributables to the 64-bit OS install, just to be safe.
Diffstat (limited to 'windowsRuntimeInstaller')
-rw-r--r--windowsRuntimeInstaller/InstallerRT.nsi41
1 files changed, 29 insertions, 12 deletions
diff --git a/windowsRuntimeInstaller/InstallerRT.nsi b/windowsRuntimeInstaller/InstallerRT.nsi
index 47862cd8..e398465d 100644
--- a/windowsRuntimeInstaller/InstallerRT.nsi
+++ b/windowsRuntimeInstaller/InstallerRT.nsi
@@ -392,23 +392,40 @@ Section
Delete ConfigLayersAndVulkanDLL.ps1
# Possibly install MSVC 2013 redistributables
- ReadRegDword $1 HKLM "SOFTWARE\Microsoft\DevDiv\vc\Servicing\12.0\RuntimeMinimum" "Install"
- IntCmp $1 1 RedistributablesInstalled InstallRedistributables InstallRedistributables
- InstallRedistributables:
- SetOutPath "$TEMP"
- # If running on a 64-bit OS machine, we need to install the 64-bit Visual Studio re-distributable
- ${If} ${RunningX64}
+ ${If} ${RunningX64}
+
+ # If running on a 64-bit OS machine, we need the 64-bit Visual Studio re-distributable. Install it if it's not already present.
+ ReadRegDword $1 HKLM "SOFTWARE\Microsoft\DevDiv\vc\Servicing\12.0\RuntimeMinimum" "Install"
+ ClearErrors
+ IntCmp $1 1 RedistributablesInstalled6464 InstallRedistributables6464 InstallRedistributables6464
+ InstallRedistributables6464:
+ SetOutPath "$TEMP"
File vcredist_x64.exe
- ExecWait '"$TEMP\vcredist_x64.exe" /passive /norestart'
+ ExecWait '"$TEMP\vcredist_x64.exe" /quiet /norestart'
- # Otherwise, we're running on a 32-bit OS machine, we need to install the 32-bit Visual Studio re-distributable
- ${Else}
+ RedistributablesInstalled6464:
+
+ # We also need the 32-bit Visual Studio re-distributable. Install it as well if it's not present
+ ReadRegDword $1 HKLM "SOFTWARE\WOW6432Node\Microsoft\DevDiv\vc\Servicing\12.0\RuntimeMinimum" "Install"
+ ClearErrors
+ IntCmp $1 1 RedistributablesInstalled InstallRedistributables InstallRedistributables
- File vcredist_x86.exe
- ExecWait '"$TEMP\vcredist_x86.exe" /passive /norestart'
+ ${Else}
+
+ # Otherwise, we're running on a 32-bit OS machine, we need to install the 32-bit Visual Studio re-distributable if it's not present.
+ ReadRegDword $1 HKLM "SOFTWARE\Microsoft\DevDiv\vc\Servicing\12.0\RuntimeMinimum" "Install"
+ ClearErrors
+ IntCmp $1 1 RedistributablesInstalled InstallRedistributables InstallRedistributables
- ${Endif}
+ ${Endif}
+
+ InstallRedistributables:
+ SetOutPath "$TEMP"
+
+ File vcredist_x86.exe
+ ExecWait '"$TEMP\vcredist_x86.exe" /quiet /norestart'
+
RedistributablesInstalled:
Call CheckForError