WindowsRTInst: Layer registry values are created/removed correctly on Windows7
authorDavid Pinedo <david@lunarg.com>
Wed, 20 Jan 2016 04:19:11 +0000 (21:19 -0700)
committerDavid Pinedo <david@lunarg.com>
Wed, 20 Jan 2016 04:21:04 +0000 (21:21 -0700)
windowsRuntimeInstaller/ConfigLayersAndVulkanDLL.ps1

index 2013b5a..e8185f7 100644 (file)
@@ -203,7 +203,7 @@ Get-Item -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ExplicitLaye
        $regval=$_\r
        ForEach ($sdkdir in $VulkanSdkDirs) {\r
           if ($regval -like "$sdkdir\*.json") {\r
-              Remove-ItemProperty -ErrorAction Ignore -Path HKLM:\SOFTWARE\Khronos\Vulkan\ExplicitLayers -name $regval\r
+              Remove-ItemProperty -ErrorAction SilentlyContinue -Path HKLM:\SOFTWARE\Khronos\Vulkan\ExplicitLayers -name $regval\r
           }\r
        }\r
    }\r
@@ -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\r
 \r
 if ($mrVulkanDllInstallDir -ne "") {\r
-    New-Item -Force -ErrorAction Ignore -Path HKLM:\SOFTWARE\Khronos\Vulkan\ExplicitLayers | out-null\r
+    New-Item -Force -ErrorAction SilentlyContinue -Path HKLM:\SOFTWARE\Khronos\Vulkan\ExplicitLayers | out-null\r
     Get-ChildItem $mrVulkanDllInstallDir\Bin -Filter *json |\r
        ForEach-Object {\r
            New-ItemProperty -Path HKLM:\SOFTWARE\Khronos\Vulkan\ExplicitLayers -Name $mrVulkanDllInstallDir\Bin\$_ -PropertyType DWord -Value 0 | out-null\r