You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jitsi/resources/install/windows/SCRegistrySpec.wxi

171 lines
5.3 KiB

<?xml version="1.0" ?>
<Include xmlns="http://schemas.microsoft.com/wix/2006/wi">
<!--
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.
See terms of license at gnu.org.
-->
<Fragment>
<ComponentGroup Id="ComponentGroup_RegistryEntries">
<Component
Id="Component_SipRegistryEntries"
Directory="TARGETDIR"
Guid="CF88EDC2-7D07-4269-946C-B8FF917887ED">
<Condition><![CDATA[CREATE_SIP_REGISTRY_ENTRIES = 1]]></Condition>
<RegistryKey Key="sip" Root="HKCR">
<RegistryValue Type="string" Value="URL: SIP Protocol handler" />
<RegistryValue Name="URL Protocol" Type="string" Value="" />
<RegistryValue
Key="DefaultIcon"
Type="string"
Value="[INSTALLDIR]sc-logo.ico" />
<RegistryValue
Key="shell\open\command"
KeyPath="yes"
Type="string"
Value='"[INSTALLDIR]@APP_LAUNCHER_NAME@.exe" %1' />
</RegistryKey>
</Component>
<Component
Id="Component_XmppRegistryEntries"
Directory="TARGETDIR"
Guid="3C9C09AE-1F57-11DE-B96D-6B8D56D89593">
<Condition><![CDATA[CREATE_XMPP_REGISTRY_ENTRIES = 1]]></Condition>
<RegistryKey Key="xmpp" Root="HKCR">
<RegistryValue Type="string" Value="URL: XMPP Protocol handler" />
<RegistryValue Name="URL Protocol" Type="string" Value="" />
<RegistryValue
Key="DefaultIcon"
Type="string"
Value="[INSTALLDIR]sc-logo.ico" />
<RegistryValue
Key="shell\open\command"
KeyPath="yes"
Type="string"
Value='"[INSTALLDIR]@APP_LAUNCHER_NAME@.exe" %1' />
</RegistryKey>
</Component>
<Component
Id="Component_StartupRegistryEntries"
Directory="TARGETDIR"
Guid="64F3D56F-62D3-420D-B5A3-C448EB169708">
<Condition><![CDATA[HAS_STARTUP_REGISTRY]]></Condition>
<RegistryKey
Key="Software\Microsoft\Windows\CurrentVersion\Run"
Root="HKCU">
<RegistryValue
KeyPath="yes"
Name="@APP_NAME@"
Type="string"
Value="[INSTALLDIR]@APP_LAUNCHER_NAME@.exe" />
</RegistryKey>
</Component>
<Component
Id="Component_MsOfficeCommRegistryEntries_X86"
Directory="TARGETDIR"
Guid="9a590be3-d2c6-48e6-8d6a-a8ca71ad0aac"
Win64="no">
<Condition><![CDATA[CREATE_MSOFFICECOMM_REGISTRY_ENTRIES = 1]]></Condition>
<RegistryKey
Key="SOFTWARE\Microsoft\Office\Outlook\Call Integration"
Root="HKLM">
<RegistryValue
KeyPath="yes"
Name="IMApplication"
Type="string"
Value="@APP_LAUNCHER_NAME@.exe" />
</RegistryKey>
<RegistryKey
Key="SOFTWARE\IM Providers\@APP_NAME@"
Root="HKLM" Action="createAndRemoveOnUninstall">
<RegistryValue
Name="FriendlyName"
Type="string"
Value="@APP_NAME@" />
<RegistryValue
Name="GUID"
Type="string"
Value="{8885370D-B33E-44B7-875D-28E403CF9270}" />
<RegistryValue
Name="ProcessName"
Type="string"
Value="@APP_LAUNCHER_NAME@.exe" />
</RegistryKey>
</Component>
<Component
Id="Component_SetDefaultIMProvider"
Directory="TARGETDIR"
Guid="abb6afe7-8787-4325-841e-a9181a09fcc9">
<Condition><![CDATA[SET_DEFAULT_IM_APP = 1]]></Condition>
<RegistryKey
Key="Software\IM Providers"
Root="HKCU">
<RegistryValue
KeyPath="yes"
Name="DefaultIMApp"
Type="string"
Value="@APP_NAME@" />
</RegistryKey>
</Component>
<Component
Id="Component_UnsetDefaultIMProvider"
Directory="TARGETDIR"
Guid="47b4b7a0-d668-4bb0-9da1-7103e4c668d0">
<Condition><![CDATA[(IS_DEFAULT_IM_APP = "@APP_NAME@") AND ((SET_DEFAULT_IM_APP = 0) OR NOT (SET_DEFAULT_IM_APP))]]></Condition>
<RegistryKey
Key="Software\IM Providers"
Root="HKCU">
<RegistryValue
KeyPath="yes"
Name="DefaultIMApp"
Type="string"
Value="Communicator" />
</RegistryKey>
</Component>
<?if $(var.Platform) = x64 ?>
<Component
Id="Component_MsOfficeCommRegistryEntries_X64"
Directory="TARGETDIR"
Guid="ce3c9a0f-1876-470e-823c-a29d7b7fcb26"
Win64="yes">
<Condition><![CDATA[CREATE_MSOFFICECOMM_REGISTRY_ENTRIES = 1]]></Condition>
<RegistryKey
Key="SOFTWARE\Microsoft\Office\Outlook\Call Integration"
Root="HKLM">
<RegistryValue
KeyPath="yes"
Name="IMApplication"
Type="string"
Value="@APP_LAUNCHER_NAME@.exe" />
</RegistryKey>
<RegistryKey
Key="SOFTWARE\IM Providers\@APP_NAME@"
Root="HKLM" Action="createAndRemoveOnUninstall">
<RegistryValue
Name="FriendlyName"
Type="string"
Value="@APP_NAME@" />
<RegistryValue
Name="GUID"
Type="string"
Value="{8885370D-B33E-44B7-875D-28E403CF9270}" />
<RegistryValue
Name="ProcessName"
Type="string"
Value="@APP_LAUNCHER_NAME@.exe" />
</RegistryKey>
</Component>
<?endif ?>
</ComponentGroup>
</Fragment>
</Include>