From f319c95485b414f20b6c1b2df9c23b55ce3edd6b Mon Sep 17 00:00:00 2001 From: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com> Date: Mon, 24 Jan 2022 19:36:34 -0500 Subject: [PATCH] wix-installer: register jami protocol Add some registry keys and values for the URL protocol via the WiX installer. Gitlab: #655 Change-Id: Ibc857cfea2db4ff5a20ca3e71e057990527a4054 --- JamiInstaller/Product.wxs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/JamiInstaller/Product.wxs b/JamiInstaller/Product.wxs index 112c31f94..2073e0aca 100644 --- a/JamiInstaller/Product.wxs +++ b/JamiInstaller/Product.wxs @@ -24,6 +24,7 @@ <ComponentRef Id="ApplicationShortcutDesktop" /> <ComponentRef Id="ApplicationShortcutStartMenu" /> <ComponentRef Id="RegistryEntries" /> + <ComponentRef Id="URLProtocolRegistryEntries" /> </Feature> <!--Visual C++ Redist merge module--> @@ -100,6 +101,23 @@ </DirectoryRef> </Fragment> + <Fragment Id="URLProtocol"> + <DirectoryRef Id="TARGETDIR"> + <Component Id="URLProtocolRegistryEntries" Guid="*" Win64="yes"> + <RegistryKey Root="HKCR" Key="jami" ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes"> + <RegistryValue Type="string" Name="URL Protocol" Value="" /> + <RegistryValue Type="string" Value="URL:jami"/> + <RegistryKey Key="DefaultIcon"> + <RegistryValue Type="string" Value="[APPLICATIONFOLDER]$(var.ExeName).exe" /> + </RegistryKey> + <RegistryKey Key="shell\open\command"> + <RegistryValue Type="string" Value='"[APPLICATIONFOLDER]$(var.ExeName).exe" "%1"' /> + </RegistryKey> + </RegistryKey> + </Component> + </DirectoryRef> + </Fragment> + <Fragment Id="UI"> <UI Id="CustomUI"> <Property Id="WixAppFolder" Value="WixPerMachineFolder" /> -- GitLab