From 2f415056c53219c90c2f695e50f7547b9d4f5dc3 Mon Sep 17 00:00:00 2001 From: David Pinedo Date: Tue, 19 Jan 2016 21:19:11 -0700 Subject: WindowsRTInst: Layer registry values are created/removed correctly on Windows7 --- windowsRuntimeInstaller/ConfigLayersAndVulkanDLL.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'windowsRuntimeInstaller') diff --git a/windowsRuntimeInstaller/ConfigLayersAndVulkanDLL.ps1 b/windowsRuntimeInstaller/ConfigLayersAndVulkanDLL.ps1 index 2013b5ab..e8185f77 100644 --- a/windowsRuntimeInstaller/ConfigLayersAndVulkanDLL.ps1 +++ b/windowsRuntimeInstaller/ConfigLayersAndVulkanDLL.ps1 @@ -203,7 +203,7 @@ Get-Item -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ExplicitLaye $regval=$_ ForEach ($sdkdir in $VulkanSdkDirs) { if ($regval -like "$sdkdir\*.json") { - Remove-ItemProperty -ErrorAction Ignore -Path HKLM:\SOFTWARE\Khronos\Vulkan\ExplicitLayers -name $regval + Remove-ItemProperty -ErrorAction SilentlyContinue -Path HKLM:\SOFTWARE\Khronos\Vulkan\ExplicitLayers -name $regval } } } @@ -212,7 +212,7 @@ Get-Item -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ExplicitLaye # Create layer registry entries associated with Vulkan SDK from which $mrVulkanDll is from if ($mrVulkanDllInstallDir -ne "") { - New-Item -Force -ErrorAction Ignore -Path HKLM:\SOFTWARE\Khronos\Vulkan\ExplicitLayers | out-null + New-Item -Force -ErrorAction SilentlyContinue -Path HKLM:\SOFTWARE\Khronos\Vulkan\ExplicitLayers | out-null Get-ChildItem $mrVulkanDllInstallDir\Bin -Filter *json | ForEach-Object { New-ItemProperty -Path HKLM:\SOFTWARE\Khronos\Vulkan\ExplicitLayers -Name $mrVulkanDllInstallDir\Bin\$_ -PropertyType DWord -Value 0 | out-null -- cgit v1.2.3