diff --git a/JamiInstaller/Product.wxs b/JamiInstaller/Product.wxs index 112c31f944e206cbf0fc5d967a4e62d4745ad74b..2073e0acac5f19845334e86fc7fd161d4f382118 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" />