# Create layer registry entries associated with Vulkan SDK from which $mrVulkanDll is from\r
\r
if ($mrVulkanDllInstallDir -ne "") {\r
- New-Item -Force -ErrorAction SilentlyContinue -Path HKLM:\SOFTWARE\Khronos\Vulkan\ExplicitLayers | out-null\r
- Get-ChildItem $mrVulkanDllInstallDir\Bin -Filter VkLayer*json |\r
- ForEach-Object {\r
- New-ItemProperty -Path HKLM:\SOFTWARE\Khronos\Vulkan\ExplicitLayers -Name $mrVulkanDllInstallDir\Bin\$_ -PropertyType DWord -Value 0 | out-null\r
- }\r
-\r
- # Create registry entires for the WOW6432Node registry only if we're targeting a 64-bit OS\r
if ($ossize -eq 64) {\r
- New-Item -Force -ErrorAction Ignore -Path HKLM:\SOFTWARE\WOW6432Node\Khronos\Vulkan\ExplicitLayers | out-null\r
+ \r
+ # Create registry entires in normal registry location for 64-bit items on a 64-bit OS\r
+ New-Item -Force -ErrorAction SilentlyContinue -Path HKLM:\SOFTWARE\Khronos\Vulkan\ExplicitLayers | out-null\r
+ Get-ChildItem $mrVulkanDllInstallDir\Bin -Filter VkLayer*json |\r
+ ForEach-Object {\r
+ New-ItemProperty -Path HKLM:\SOFTWARE\Khronos\Vulkan\ExplicitLayers -Name $mrVulkanDllInstallDir\Bin\$_ -PropertyType DWord -Value 0 | out-null\r
+ }\r
+\r
+ # Create registry entires for the WOW6432Node registry location for 32-bit items on a 64-bit OS\r
+ New-Item -Force -ErrorAction SilentlyContinue -Path HKLM:\SOFTWARE\WOW6432Node\Khronos\Vulkan\ExplicitLayers | out-null\r
Get-ChildItem $mrVulkanDllInstallDir\Bin32 -Filter VkLayer*json |\r
ForEach-Object {\r
New-ItemProperty -Path HKLM:\SOFTWARE\WOW6432Node\Khronos\Vulkan\ExplicitLayers -Name $mrVulkanDllInstallDir\Bin32\$_ -PropertyType DWord -Value 0 | out-null\r
}\r
+ \r
+ } else {\r
+ \r
+ # Create registry entires in normal registry location for 32-bit items on a 32-bit OS\r
+ New-Item -Force -ErrorAction SilentlyContinue -Path HKLM:\SOFTWARE\Khronos\Vulkan\ExplicitLayers | out-null\r
+ Get-ChildItem $mrVulkanDllInstallDir\Bin32 -Filter VkLayer*json |\r
+ ForEach-Object {\r
+ New-ItemProperty -Path HKLM:\SOFTWARE\Khronos\Vulkan\ExplicitLayers -Name $mrVulkanDllInstallDir\Bin32\$_ -PropertyType DWord -Value 0 | out-null\r
+ }\r
+ \r
}\r
}\r