From 0500777d22dac117fe0e582756dac85790de17be Mon Sep 17 00:00:00 2001 From: Mark Young Date: Fri, 12 Feb 2016 12:07:45 -0700 Subject: 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 . --- windowsRuntimeInstaller/ConfigLayersAndVulkanDLL.ps1 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'windowsRuntimeInstaller') 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 -- cgit v1.2.3