aboutsummaryrefslogtreecommitdiffstats
path: root/resources/install/windows/SCRegistrySpec.wxi
blob: 36069de53b32f6cad94d58be1717ad498facc71b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
<?xml version="1.0" ?>
<Include xmlns="http://schemas.microsoft.com/wix/2006/wi">
<!--
  Jitsi, the OpenSource Java VoIP and Instant Messaging client.

  Copyright @ 2015 Atlassian Pty Ltd

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->

<Fragment>
<ComponentGroup Id="ComponentGroup_RegistryEntries">
  <Component
      Id="Component_UrlCapabilities"
      Directory="TARGETDIR"
      Guid="5798BE9D-AEA5-4DA8-992E-EEAD03D7E4CB"
      Win64="no">
    <RegistryKey Key="Software\Jitsi\Capabilities" Root="HKLM">
      <RegistryValue Name="ApplicationDescription" Type="string" Value="Jitsi, the Open Source VoIP and Instant Messaging client." />
    </RegistryKey>
    <RegistryKey Key="Software\RegisteredApplications" Root="HKLM">
      <RegistryValue Name="Jitsi" Type="string" Value="Software\Jitsi\Capabilities" />
    </RegistryKey>
    <RegistryKey Key="Software\Jitsi\Capabilities\UrlAssociations" Root="HKLM">
      <RegistryValue Name="callto" Type="string" Value="Jitsi.Url" />
      <RegistryValue Name="sip" Type="string" Value="Jitsi.Url" />
      <RegistryValue Name="tel" Type="string" Value="Jitsi.Url" />
      <RegistryValue Name="xmpp" Type="string" Value="Jitsi.Url" />
    </RegistryKey>
    <RegistryKey Key="Software\Classes\Jitsi.Url" Root="HKLM">
      <RegistryValue
          Key="shell\open\command"
          KeyPath="yes"
          Type="string"
          Value='"[INSTALLDIR]@APP_LAUNCHER_NAME@.exe" "%1"' />
    </RegistryKey>
  </Component>

  <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">
      <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_UrlCapabilities64"
      Directory="TARGETDIR"
      Guid="3de76b6b-90b9-403d-82ac-51d841ea95af"
      Win64="yes">
    <RegistryKey Key="Software\Jitsi\Capabilities" Root="HKLM">
      <RegistryValue Name="ApplicationDescription" Type="string" Value="Jitsi, the Open Source VoIP and Instant Messaging client." />
    </RegistryKey>
    <RegistryKey Key="Software\RegisteredApplications" Root="HKLM">
      <RegistryValue Name="Jitsi" Type="string" Value="Software\Jitsi\Capabilities" />
    </RegistryKey>
    <RegistryKey Key="Software\Jitsi\Capabilities\UrlAssociations" Root="HKLM">
      <RegistryValue Name="callto" Type="string" Value="Jitsi.Url" />
      <RegistryValue Name="sip" Type="string" Value="Jitsi.Url" />
      <RegistryValue Name="tel" Type="string" Value="Jitsi.Url" />
      <RegistryValue Name="xmpp" Type="string" Value="Jitsi.Url" />
    </RegistryKey>
    <RegistryKey Key="Software\Classes\Jitsi.Url" Root="HKLM">
      <RegistryValue
          Key="shell\open\command"
          KeyPath="yes"
          Type="string"
          Value='"[INSTALLDIR]@APP_LAUNCHER_NAME@.exe" "%1"' />
    </RegistryKey>
  </Component>

  <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">
        <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>