windowssdk: Fixed Config powershell script to look at Windows Folder.
authorMark Young <marky@lunarg.com>
Fri, 12 Feb 2016 19:07:45 +0000 (12:07 -0700)
committerMark Young <marky@lunarg.com>
Fri, 12 Feb 2016 19:10:57 +0000 (12:10 -0700)
This replaces a hard-code to C:\windows instead of looking at the
proper windows drive letter <SYSTEMDRIVE and SYSTEMROOT>.

windowsRuntimeInstaller/ConfigLayersAndVulkanDLL.ps1

index 851dfa6..ad31cd2 100644 (file)
@@ -47,6 +47,8 @@ Param(
 )\r
 \r
 $vulkandll = "vulkan-"+$majorabi+".dll"\r
+$windrive  = $env:SYSTEMDRIVE\r
+$winfolder = $env:SYSTEMROOT\r
 \r
 # The name of the versioned vulkan dll file is one of the following:\r
 #\r
@@ -195,11 +197,11 @@ function UpdateVulkanSysFolder([string]$dir, [int]$writeSdkName)
 # We only care about SYSWOW64 if we're targeting a 64-bit OS\r
 if ($ossize -eq 64) {\r
     # Update the SYSWOW64 Vulkan DLLS/EXEs\r
-    UpdateVulkanSysFolder c:\WINDOWS\SYSWOW64 0\r
+    UpdateVulkanSysFolder $winfolder\SYSWOW64 0\r
 }\r
 \r
 # Update the SYSTEM32 Vulkan DLLS/EXEs\r
-UpdateVulkanSysFolder c:\WINDOWS\SYSTEM32 1\r
+UpdateVulkanSysFolder $winfolder\SYSTEM32 1\r
 \r
 # Create an array of vulkan sdk install dirs\r
 \r
@@ -230,6 +232,7 @@ Get-ChildItem -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr
 # need to be cleaned up manually.\r
 \r
 $VulkanSdkDirs+="C:\VulkanSDK\0.9.3"\r
+$VulkanSdkDirs+="$windrive\VulkanSDK\0.9.3"\r
 \r
 # Remove layer registry entries associated with all installed Vulkan SDKs.\r
 # Note that we remove only those entries created by Vulkan SDKs. If other\r