Browse Source

fix(bundler): Fix path seperators for deep link registry entries (#9185)

* fix(bundler): Fix path seperators for deep link registry entries

* Update bundler-deep-link-reg-path.md
Fabian-Lars 1 year ago
parent
commit
a799f24f97

+ 5 - 0
.changes/bundler-deep-link-reg-path.md

@@ -0,0 +1,5 @@
+---
+'tauri-bundler': 'patch:bug'
+---
+
+Fixed an issue that caused the msi bundler to crash when deep link schemes were configured.

+ 2 - 2
tooling/bundler/src/bundle/windows/templates/main.wxs

@@ -113,13 +113,13 @@
                 </RegistryKey>
                 <!-- Change the Root to HKCU for perUser installations -->
                 {{#each deep_link_protocols as |protocol| ~}}
-                <RegistryKey Root="HKLM" Key="Software\\Classes\\{{protocol}}">
+                <RegistryKey Root="HKLM" Key="Software\Classes\\{{protocol}}">
                     <RegistryValue Type="string" Name="URL Protocol" Value=""/>
                     <RegistryValue Type="string" Value="URL:{{bundle_id}} protocol"/>
                     <RegistryKey Key="DefaultIcon">
                         <RegistryValue Type="string" Value="&quot;[!Path]&quot;,0" />
                     </RegistryKey>
-                    <RegistryKey Key="shell\\open\\command">
+                    <RegistryKey Key="shell\open\command">
                         <RegistryValue Type="string" Value="&quot;[!Path]&quot; &quot;%1&quot;" />
                     </RegistryKey>
                 </RegistryKey>