aboutsummaryrefslogtreecommitdiff
path: root/windowsRuntimeInstaller
diff options
context:
space:
mode:
authorMark Young <marky@lunarg.com>2016-02-12 12:07:45 -0700
committerMark Young <marky@lunarg.com>2016-02-12 12:10:57 -0700
commit0500777d22dac117fe0e582756dac85790de17be (patch)
tree4101809ea1e035935b607e1f07f98da47b75e53f /windowsRuntimeInstaller
parente1721172ceff7425b668303f0da4df3f370e749d (diff)
downloadusermoji-0500777d22dac117fe0e582756dac85790de17be.tar.xz
windowssdk: Fixed Config powershell script to look at Windows Folder.
This replaces a hard-code to C:\windows instead of looking at the proper windows drive letter <SYSTEMDRIVE and SYSTEMROOT>.
Diffstat (limited to 'windowsRuntimeInstaller')
-rw-r--r--windowsRuntimeInstaller/ConfigLayersAndVulkanDLL.ps17
1 files changed, 5 insertions, 2 deletions
diff --git a/windowsRuntimeInstaller/ConfigLayersAndVulkanDLL.ps1 b/windowsRuntimeInstaller/ConfigLayersAndVulkanDLL.ps1
index 851dfa6c..ad31cd29 100644
--- a/windowsRuntimeInstaller/ConfigLayersAndVulkanDLL.ps1
+++ b/windowsRuntimeInstaller/ConfigLayersAndVulkanDLL.ps1
@@ -47,6 +47,8 @@ Param(
)
$vulkandll = "vulkan-"+$majorabi+".dll"
+$windrive = $env:SYSTEMDRIVE
+$winfolder = $env:SYSTEMROOT
# The name of the versioned vulkan dll file is one of the following:
#
@@ -195,11 +197,11 @@ function UpdateVulkanSysFolder([string]$dir, [int]$writeSdkName)
# We only care about SYSWOW64 if we're targeting a 64-bit OS
if ($ossize -eq 64) {
# Update the SYSWOW64 Vulkan DLLS/EXEs
- UpdateVulkanSysFolder c:\WINDOWS\SYSWOW64 0
+ UpdateVulkanSysFolder $winfolder\SYSWOW64 0
}
# Update the SYSTEM32 Vulkan DLLS/EXEs
-UpdateVulkanSysFolder c:\WINDOWS\SYSTEM32 1
+UpdateVulkanSysFolder $winfolder\SYSTEM32 1
# Create an array of vulkan sdk install dirs
@@ -230,6 +232,7 @@ Get-ChildItem -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr
# need to be cleaned up manually.
$VulkanSdkDirs+="C:\VulkanSDK\0.9.3"
+$VulkanSdkDirs+="$windrive\VulkanSDK\0.9.3"
# Remove layer registry entries associated with all installed Vulkan SDKs.
# Note that we remove only those entries created by Vulkan SDKs. If other