aboutsummaryrefslogtreecommitdiff
path: root/windowsRuntimeInstaller/ConfigLayersAndVulkanDLL.ps1
diff options
context:
space:
mode:
authorMark Young <marky@lunarg.com>2016-02-09 15:30:34 -0700
committerMark Young <marky@lunarg.com>2016-02-09 15:30:34 -0700
commita87c5e697f95da65f0e4d48f3b4906d3c5de60d3 (patch)
tree7c41334e499f8cba2ae9393e45cd803598f5419f /windowsRuntimeInstaller/ConfigLayersAndVulkanDLL.ps1
parentaf66a7545df652eef49cdc0efcfafe43776a2d77 (diff)
downloadusermoji-a87c5e697f95da65f0e4d48f3b4906d3c5de60d3.tar.xz
windowssdk: Fix 32-bit install issue with Powershell script.
Fix the install Powershell script which populates the ExplicitLayers registry entries. There were 2 problems: 1) it was using newer Powershell commands that failed on Windows 7, 2) it was trying to populate the 32-bit data on a 32-bit system with the 64-bit Bin folder.
Diffstat (limited to 'windowsRuntimeInstaller/ConfigLayersAndVulkanDLL.ps1')
-rw-r--r--windowsRuntimeInstaller/ConfigLayersAndVulkanDLL.ps128
1 files changed, 20 insertions, 8 deletions
diff --git a/windowsRuntimeInstaller/ConfigLayersAndVulkanDLL.ps1 b/windowsRuntimeInstaller/ConfigLayersAndVulkanDLL.ps1
index 7d90f620..bf29c6c3 100644
--- a/windowsRuntimeInstaller/ConfigLayersAndVulkanDLL.ps1
+++ b/windowsRuntimeInstaller/ConfigLayersAndVulkanDLL.ps1
@@ -265,18 +265,30 @@ if ($ossize -eq 64) {
# Create layer registry entries associated with Vulkan SDK from which $mrVulkanDll is from
if ($mrVulkanDllInstallDir -ne "") {
- New-Item -Force -ErrorAction SilentlyContinue -Path HKLM:\SOFTWARE\Khronos\Vulkan\ExplicitLayers | out-null
- Get-ChildItem $mrVulkanDllInstallDir\Bin -Filter VkLayer*json |
- ForEach-Object {
- New-ItemProperty -Path HKLM:\SOFTWARE\Khronos\Vulkan\ExplicitLayers -Name $mrVulkanDllInstallDir\Bin\$_ -PropertyType DWord -Value 0 | out-null
- }
-
- # Create registry entires for the WOW6432Node registry only if we're targeting a 64-bit OS
if ($ossize -eq 64) {
- New-Item -Force -ErrorAction Ignore -Path HKLM:\SOFTWARE\WOW6432Node\Khronos\Vulkan\ExplicitLayers | out-null
+
+ # Create registry entires in normal registry location for 64-bit items on a 64-bit OS
+ New-Item -Force -ErrorAction SilentlyContinue -Path HKLM:\SOFTWARE\Khronos\Vulkan\ExplicitLayers | out-null
+ Get-ChildItem $mrVulkanDllInstallDir\Bin -Filter VkLayer*json |
+ ForEach-Object {
+ New-ItemProperty -Path HKLM:\SOFTWARE\Khronos\Vulkan\ExplicitLayers -Name $mrVulkanDllInstallDir\Bin\$_ -PropertyType DWord -Value 0 | out-null
+ }
+
+ # Create registry entires for the WOW6432Node registry location for 32-bit items on a 64-bit OS
+ New-Item -Force -ErrorAction SilentlyContinue -Path HKLM:\SOFTWARE\WOW6432Node\Khronos\Vulkan\ExplicitLayers | out-null
Get-ChildItem $mrVulkanDllInstallDir\Bin32 -Filter VkLayer*json |
ForEach-Object {
New-ItemProperty -Path HKLM:\SOFTWARE\WOW6432Node\Khronos\Vulkan\ExplicitLayers -Name $mrVulkanDllInstallDir\Bin32\$_ -PropertyType DWord -Value 0 | out-null
}
+
+ } else {
+
+ # Create registry entires in normal registry location for 32-bit items on a 32-bit OS
+ New-Item -Force -ErrorAction SilentlyContinue -Path HKLM:\SOFTWARE\Khronos\Vulkan\ExplicitLayers | out-null
+ Get-ChildItem $mrVulkanDllInstallDir\Bin32 -Filter VkLayer*json |
+ ForEach-Object {
+ New-ItemProperty -Path HKLM:\SOFTWARE\Khronos\Vulkan\ExplicitLayers -Name $mrVulkanDllInstallDir\Bin32\$_ -PropertyType DWord -Value 0 | out-null
+ }
+
}
}