OLD | NEW |
1 <?xml version="1.0"?> | 1 <?xml version="1.0"?> |
2 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> | 2 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> |
3 | 3 |
4 <?define EventSourceName = "chromoting" ?> | 4 <?define EventSourceName = "chromoting" ?> |
5 <?define ServiceName = "chromoting" ?> | 5 <?define ServiceName = "chromoting" ?> |
6 | 6 |
7 <!-- TODO(alexeypa): There strings should be localized, | 7 <!-- TODO(alexeypa): There strings should be localized, |
8 see http://crbug.com/121785 --> | 8 see http://crbug.com/121785 --> |
9 <?if $(var.Branding) ~= Chrome ?> | 9 <?if $(var.Branding) ~= Chrome ?> |
10 <?define ChromotingHost = "Chrome Remote Desktop Host" ?> | 10 <?define ChromotingHost = "Chrome Remote Desktop Host" ?> |
11 <?define ChromotingServiceName = "Chrome Remote Desktop Service" ?> | 11 <?define ChromotingServiceName = "Chrome Remote Desktop Service" ?> |
12 <?define ChromotingServiceDescription = "This service enables incoming conne
ctions from Chrome Remote Desktop clients." ?> | 12 <?define ChromotingServiceDescription = "This service enables incoming conne
ctions from Chrome Remote Desktop clients." ?> |
13 <?define Manufacturer = "Google Inc." ?> | 13 <?define Manufacturer = "Google Inc." ?> |
14 <?else?> | 14 <?else?> |
15 <?define ChromotingHost = "Chromoting Host" ?> | 15 <?define ChromotingHost = "Chromoting Host" ?> |
16 <?define ChromotingServiceName = "Chromoting Service" ?> | 16 <?define ChromotingServiceName = "Chromoting Service" ?> |
17 <?define ChromotingServiceDescription = "This service enables incoming conne
ctions from Chromoting clients." ?> | 17 <?define ChromotingServiceDescription = "This service enables incoming conne
ctions from Chromoting clients." ?> |
18 <?define Manufacturer = "The Chromium Authors" ?> | 18 <?define Manufacturer = "The Chromium Authors" ?> |
19 <?endif?> | 19 <?endif?> |
20 | 20 |
21 <?define FirewallName = "$(var.ChromotingHost)" ?> | 21 <?define FirewallName = "$(var.ChromotingHost)" ?> |
22 | 22 |
23 <?define OmahaAppid = "{b210701e-ffc4-49e3-932b-370728c72662}" ?> | 23 <?define OmahaAppid = "{b210701e-ffc4-49e3-932b-370728c72662}" ?> |
24 <?define UpgradeCode = "2b21f767-e157-4fa6-963c-55834c1433a6" ?> | 24 <?define UpgradeCode = "2b21f767-e157-4fa6-963c-55834c1433a6" ?> |
25 | 25 |
26 <?define ControllerAppid = "{4ff35d5e-d226-4550-9248-03e7779e67de}" ?> | 26 <?define ControllerAppid = "{4ff35d5e-d226-4550-9248-03e7779e67de}" ?> |
27 <?define ControllerBinary = "remoting_host_controller.exe" ?> | 27 <?define ControllerBinary = "remoting_host_controller.exe" ?> |
28 <?define ControllerClass = "ElevatedController Class" ?> | 28 <?define ControllerClass = "ElevatedController Class" ?> |
| 29 <?define ControllerClsid = "{430a9403-8176-4733-afdc-0b325a8fda84}" ?> |
29 <?define ControllerProgid = | 30 <?define ControllerProgid = |
30 "ChromotingElevatedController.ElevatedController" ?> | 31 "ChromotingElevatedController.ElevatedController" ?> |
31 <?define ControllerTypelib = "{9d9a5a2c-576e-4acd-9c75-aabff74b205d}" ?> | 32 <?define ControllerTypelib = "{9d9a5a2c-576e-4acd-9c75-aabff74b205d}" ?> |
32 | 33 |
33 <!-- | 34 <!-- |
34 The long hex value below is a security descriptor that allows SYSTEM, | 35 The long hex value below is a security descriptor that allows SYSTEM, |
35 built-in administrators and interactive users to call methods of a COM | 36 built-in administrators and interactive users to call methods of a COM |
36 object (COM_RIGHTS_EXECUTE and COM_RIGHTS_EXECUTE_LOCAL). The security | 37 object (COM_RIGHTS_EXECUTE and COM_RIGHTS_EXECUTE_LOCAL). The security |
37 descriptor was generated from SDDL definition using the PowerShell script | 38 descriptor was generated from SDDL definition using the PowerShell script |
38 below: | 39 below: |
39 | 40 |
40 $sddl = "O:BAG:BAD:(A;;0x3;;;IU)(A;;0x3;;;SY)(A;;0x3;;;BA)" | 41 $sddl = "O:BAG:BAD:(A;;0x3;;;IU)(A;;0x3;;;SY)(A;;0x3;;;BA)" |
41 $i = ([wmiclass]"Win32_SecurityDescriptorHelper").SDDLToBinarySD($sddl).Bi
narySD | 42 $i = ([wmiclass]"Win32_SecurityDescriptorHelper").SDDLToBinarySD($sddl).Bi
narySD |
42 -join ($i | foreach {$_.ToString("X2")}) | 43 -join ($i | foreach {$_.ToString("X2")}) |
43 --> | 44 --> |
44 <?define ControllerSd = "010004805C0000006C00000000000000140000000200480003000
00000001400030000000101000000000005040000000000140003000000010100000000000512000
00000001800030000000102000000000005200000002002000001020000000000052000000020020
00001020000000000052000000020020000" ?> | 45 <?define ControllerSd = "010004805C0000006C00000000000000140000000200480003000
00000001400030000000101000000000005040000000000140003000000010100000000000512000
00000001800030000000102000000000005200000002002000001020000000000052000000020020
00001020000000000052000000020020000" ?> |
45 | 46 |
46 <?ifndef ControllerClsid ?> | |
47 <?error ControllerClsid must be defined ?> | |
48 <?endif?> | |
49 | |
50 <?ifndef FileSource ?> | 47 <?ifndef FileSource ?> |
51 <?error FileSource must be defined ?> | 48 <?error FileSource must be defined ?> |
52 <?endif?> | 49 <?endif?> |
53 | 50 |
54 <?ifndef IconPath ?> | 51 <?ifndef IconPath ?> |
55 <?error IconPath must be defined ?> | 52 <?error IconPath must be defined ?> |
56 <?endif?> | 53 <?endif?> |
57 | 54 |
58 <?ifndef SasDllPath ?> | 55 <?ifndef SasDllPath ?> |
59 <?error SasDllPath must be defined ?> | 56 <?error SasDllPath must be defined ?> |
(...skipping 26 matching lines...) Expand all Loading... |
86 AllowSameVersionUpgrades="yes" | 83 AllowSameVersionUpgrades="yes" |
87 DowngradeErrorMessage="A later version of [ProductName] is already install
ed. Setup will now exit." | 84 DowngradeErrorMessage="A later version of [ProductName] is already install
ed. Setup will now exit." |
88 Schedule="afterInstallInitialize" /> | 85 Schedule="afterInstallInitialize" /> |
89 | 86 |
90 <Media Id="1" Cabinet="chromoting.cab" EmbedCab="yes"/> | 87 <Media Id="1" Cabinet="chromoting.cab" EmbedCab="yes"/> |
91 | 88 |
92 <Directory Id="TARGETDIR" Name="SourceDir"> | 89 <Directory Id="TARGETDIR" Name="SourceDir"> |
93 <Directory Id="ProgramFilesFolder"> | 90 <Directory Id="ProgramFilesFolder"> |
94 <?ifdef OfficialBuild ?> | 91 <?ifdef OfficialBuild ?> |
95 <Directory Id="program_files_google" Name="Google"> | 92 <Directory Id="program_files_google" Name="Google"> |
96 <Directory Id="chromoting" Name="Chrome Remote Desktop"> | 93 <Directory Id="binaries" Name="Chrome Remote Desktop"/> |
97 <Directory Id="binaries" Name="$(var.Version)"/> | |
98 </Directory> | |
99 </Directory> | 94 </Directory> |
100 <?else?> | 95 <?else?> |
101 <Directory Id="chromoting" Name="Chromoting"> | 96 <Directory Id="binaries" Name="Chromoting"/> |
102 <Directory Id="binaries" Name="$(var.Version)"/> | |
103 </Directory> | |
104 <?endif?> | 97 <?endif?> |
105 </Directory> | 98 </Directory> |
106 <Directory Id="CommonAppDataFolder"> | 99 <Directory Id="CommonAppDataFolder"> |
107 <?ifdef OfficialBuild ?> | 100 <?ifdef OfficialBuild ?> |
108 <Directory Id="common_app_data_google" Name="Google"> | 101 <Directory Id="common_app_data_google" Name="Google"> |
109 <Directory Id="config_files" Name="Chrome Remote Desktop"/> | 102 <Directory Id="config_files" Name="Chrome Remote Desktop"/> |
110 </Directory> | 103 </Directory> |
111 <?else?> | 104 <?else?> |
112 <Directory Id="config_files" Name="Chromoting"/> | 105 <Directory Id="config_files" Name="Chromoting"/> |
113 <?endif?> | 106 <?endif?> |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 <RegistryValue Type="string" | 210 <RegistryValue Type="string" |
218 Value="$(var.ControllerClass)"/> | 211 Value="$(var.ControllerClass)"/> |
219 | 212 |
220 <RegistryKey Key="CLSID" Action="create"> | 213 <RegistryKey Key="CLSID" Action="create"> |
221 <RegistryValue Type="string" | 214 <RegistryValue Type="string" |
222 Value="$(var.ControllerClsid)"/> | 215 Value="$(var.ControllerClsid)"/> |
223 </RegistryKey> | 216 </RegistryKey> |
224 | 217 |
225 <RegistryKey Key="CurVer" Action="create"> | 218 <RegistryKey Key="CurVer" Action="create"> |
226 <RegistryValue Type="string" | 219 <RegistryValue Type="string" |
227 Value="$(var.ControllerProgid).$(var.Version)"/> | 220 Value="$(var.ControllerProgid).1"/> |
228 </RegistryKey> | 221 </RegistryKey> |
229 </RegistryKey> | 222 </RegistryKey> |
230 | 223 |
231 <RegistryKey Key="$(var.ControllerProgid).$(var.Version)" | 224 <RegistryKey Key="$(var.ControllerProgid).1" Action="create"> |
232 Action="create"> | |
233 <RegistryValue Type="string" | 225 <RegistryValue Type="string" |
234 Value="$(var.ControllerClass)"/> | 226 Value="$(var.ControllerClass)"/> |
235 | 227 |
236 <RegistryKey Key="CLSID" Action="create"> | 228 <RegistryKey Key="CLSID" Action="create"> |
237 <RegistryValue Type="string" | 229 <RegistryValue Type="string" |
238 Value="$(var.ControllerClsid)"/> | 230 Value="$(var.ControllerClsid)"/> |
239 </RegistryKey> | 231 </RegistryKey> |
240 </RegistryKey> | 232 </RegistryKey> |
241 | 233 |
242 <RegistryKey Key="CLSID"> | 234 <RegistryKey Key="CLSID"> |
243 <RegistryKey Key="$(var.ControllerClsid)" Action="create"> | 235 <RegistryKey Key="$(var.ControllerClsid)" Action="create"> |
244 <RegistryValue Type="string" | 236 <RegistryValue Type="string" |
245 Value="$(var.ControllerClass)"/> | 237 Value="$(var.ControllerClass)"/> |
246 | 238 |
247 <RegistryValue Type="string" | 239 <RegistryValue Type="string" |
248 Name="AppID" | 240 Name="AppID" |
249 Value="$(var.ControllerAppid)"/> | 241 Value="$(var.ControllerAppid)"/> |
250 | 242 |
251 <RegistryValue Type="string" | 243 <RegistryValue Type="string" |
252 Name="LocalizedString" | 244 Name="LocalizedString" |
253 Value="@[#$(var.ControllerBinary)],-100"/> | 245 Value="@[#$(var.ControllerBinary)],-100"/> |
254 | 246 |
255 <RegistryKey Key="LocalServer32" Action="create"> | 247 <RegistryKey Key="LocalServer32" Action="create"> |
256 <RegistryValue Type="string" | 248 <RegistryValue Type="string" |
257 Value="[#$(var.ControllerBinary)]"/> | 249 Value="[#$(var.ControllerBinary)]"/> |
258 </RegistryKey> | 250 </RegistryKey> |
259 | 251 |
260 <RegistryKey Key="ProgID" Action="create"> | 252 <RegistryKey Key="ProgID" Action="create"> |
261 <RegistryValue Type="string" | 253 <RegistryValue Type="string" |
262 Value="$(var.ControllerProgid).$(var.Version)"/> | 254 Value="$(var.ControllerProgid).1"/> |
263 </RegistryKey> | 255 </RegistryKey> |
264 | 256 |
265 <RegistryKey Key="TypeLib" Action="create"> | 257 <RegistryKey Key="TypeLib" Action="create"> |
266 <RegistryValue Type="string" | 258 <RegistryValue Type="string" |
267 Value="$(var.ControllerTypelib)"/> | 259 Value="$(var.ControllerTypelib)"/> |
268 </RegistryKey> | 260 </RegistryKey> |
269 | 261 |
270 <RegistryKey Key="VersionIndependentProgID" Action="create"> | 262 <RegistryKey Key="VersionIndependentProgID" Action="create"> |
271 <RegistryValue Type="string" | 263 <RegistryValue Type="string" |
272 Value="$(var.ControllerProgid)"/> | 264 Value="$(var.ControllerProgid)"/> |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 </Custom> | 406 </Custom> |
415 <Custom Action="set_service_display_name" Before="InstallInitialize"> | 407 <Custom Action="set_service_display_name" Before="InstallInitialize"> |
416 <![CDATA[VersionNT >= 600]]> | 408 <![CDATA[VersionNT >= 600]]> |
417 </Custom> | 409 </Custom> |
418 <Custom Action="set_service_description" Before="InstallInitialize"> | 410 <Custom Action="set_service_description" Before="InstallInitialize"> |
419 <![CDATA[VersionNT >= 600]]> | 411 <![CDATA[VersionNT >= 600]]> |
420 </Custom> | 412 </Custom> |
421 </InstallExecuteSequence> | 413 </InstallExecuteSequence> |
422 </Product> | 414 </Product> |
423 </Wix> | 415 </Wix> |
OLD | NEW |