installer: Fix LunarXchange issue #287.
authorMark Young <marky@lunarg.com>
Fri, 15 Jan 2016 16:01:11 +0000 (09:01 -0700)
committerMark Young <marky@lunarg.com>
Fri, 15 Jan 2016 21:12:49 +0000 (14:12 -0700)
Apply David's fix to force the registry to be created.

windowsRuntimeInstaller/ConfigLayersAndVulkanDLL.ps1

index 96d3ae5..2013b5a 100644 (file)
@@ -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 -ErrorAction Ignore -Path HKLM:\SOFTWARE\Khronos\Vulkan\ExplicitLayers | out-null\r
+    New-Item -Force -ErrorAction Ignore -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