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}" ?> | |
30 <?define ControllerProgid = | 29 <?define ControllerProgid = |
31 "ChromotingElevatedController.ElevatedController" ?> | 30 "ChromotingElevatedController.ElevatedController" ?> |
32 <?define ControllerTypelib = "{9d9a5a2c-576e-4acd-9c75-aabff74b205d}" ?> | 31 <?define ControllerTypelib = "{9d9a5a2c-576e-4acd-9c75-aabff74b205d}" ?> |
33 | 32 |
34 <!-- | 33 <!-- |
35 The long hex value below is a security descriptor that allows SYSTEM, | 34 The long hex value below is a security descriptor that allows SYSTEM, |
36 built-in administrators and interactive users to call methods of a COM | 35 built-in administrators and interactive users to call methods of a COM |
37 object (COM_RIGHTS_EXECUTE and COM_RIGHTS_EXECUTE_LOCAL). The security | 36 object (COM_RIGHTS_EXECUTE and COM_RIGHTS_EXECUTE_LOCAL). The security |
38 descriptor was generated from SDDL definition using the PowerShell script | 37 descriptor was generated from SDDL definition using the PowerShell script |
39 below: | 38 below: |
40 | 39 |
41 $sddl = "O:BAG:BAD:(A;;0x3;;;IU)(A;;0x3;;;SY)(A;;0x3;;;BA)" | 40 $sddl = "O:BAG:BAD:(A;;0x3;;;IU)(A;;0x3;;;SY)(A;;0x3;;;BA)" |
42 $i = ([wmiclass]"Win32_SecurityDescriptorHelper").SDDLToBinarySD($sddl).Bi narySD | 41 $i = ([wmiclass]"Win32_SecurityDescriptorHelper").SDDLToBinarySD($sddl).Bi narySD |
43 -join ($i | foreach {$_.ToString("X2")}) | 42 -join ($i | foreach {$_.ToString("X2")}) |
44 --> | 43 --> |
45 <?define ControllerSd = "010004805C0000006C00000000000000140000000200480003000 00000001400030000000101000000000005040000000000140003000000010100000000000512000 00000001800030000000102000000000005200000002002000001020000000000052000000020020 00001020000000000052000000020020000" ?> | 44 <?define ControllerSd = "010004805C0000006C00000000000000140000000200480003000 00000001400030000000101000000000005040000000000140003000000010100000000000512000 00000001800030000000102000000000005200000002002000001020000000000052000000020020 00001020000000000052000000020020000" ?> |
46 | 45 |
46 <?ifndef ControllerClsid ?> | |
47 <?error ControllerClsid must be defined ?> | |
48 <?endif?> | |
49 | |
47 <?ifndef FileSource ?> | 50 <?ifndef FileSource ?> |
48 <?error FileSource must be defined ?> | 51 <?error FileSource must be defined ?> |
49 <?endif?> | 52 <?endif?> |
50 | 53 |
51 <?ifndef IconPath ?> | 54 <?ifndef IconPath ?> |
52 <?error IconPath must be defined ?> | 55 <?error IconPath must be defined ?> |
53 <?endif?> | 56 <?endif?> |
54 | 57 |
55 <?ifndef SasDllPath ?> | 58 <?ifndef SasDllPath ?> |
56 <?error SasDllPath must be defined ?> | 59 <?error SasDllPath must be defined ?> |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
214 <RegistryValue Type="string" | 217 <RegistryValue Type="string" |
215 Value="$(var.ControllerClass)"/> | 218 Value="$(var.ControllerClass)"/> |
216 | 219 |
217 <RegistryKey Key="CLSID" Action="create"> | 220 <RegistryKey Key="CLSID" Action="create"> |
218 <RegistryValue Type="string" | 221 <RegistryValue Type="string" |
219 Value="$(var.ControllerClsid)"/> | 222 Value="$(var.ControllerClsid)"/> |
220 </RegistryKey> | 223 </RegistryKey> |
221 | 224 |
222 <RegistryKey Key="CurVer" Action="create"> | 225 <RegistryKey Key="CurVer" Action="create"> |
223 <RegistryValue Type="string" | 226 <RegistryValue Type="string" |
224 Value="$(var.ControllerProgid).1"/> | 227 Value="$(var.ControllerProgid).$(var.Version)"/> |
Jamie
2012/08/03 00:31:19
Is this part of this change or an unrelated bug fi
alexeypa (please no reviews)
2012/08/03 01:09:08
It is a part of the change.
| |
225 </RegistryKey> | 228 </RegistryKey> |
226 </RegistryKey> | 229 </RegistryKey> |
227 | 230 |
228 <RegistryKey Key="$(var.ControllerProgid).1" Action="create"> | 231 <RegistryKey Key="$(var.ControllerProgid).$(var.Version)" |
232 Action="create"> | |
229 <RegistryValue Type="string" | 233 <RegistryValue Type="string" |
230 Value="$(var.ControllerClass)"/> | 234 Value="$(var.ControllerClass)"/> |
231 | 235 |
232 <RegistryKey Key="CLSID" Action="create"> | 236 <RegistryKey Key="CLSID" Action="create"> |
233 <RegistryValue Type="string" | 237 <RegistryValue Type="string" |
234 Value="$(var.ControllerClsid)"/> | 238 Value="$(var.ControllerClsid)"/> |
235 </RegistryKey> | 239 </RegistryKey> |
236 </RegistryKey> | 240 </RegistryKey> |
237 | 241 |
238 <RegistryKey Key="CLSID"> | 242 <RegistryKey Key="CLSID"> |
239 <RegistryKey Key="$(var.ControllerClsid)" Action="create"> | 243 <RegistryKey Key="$(var.ControllerClsid)" Action="create"> |
240 <RegistryValue Type="string" | 244 <RegistryValue Type="string" |
241 Value="$(var.ControllerClass)"/> | 245 Value="$(var.ControllerClass)"/> |
242 | 246 |
243 <RegistryValue Type="string" | 247 <RegistryValue Type="string" |
244 Name="AppID" | 248 Name="AppID" |
245 Value="$(var.ControllerAppid)"/> | 249 Value="$(var.ControllerAppid)"/> |
246 | 250 |
247 <RegistryValue Type="string" | 251 <RegistryValue Type="string" |
248 Name="LocalizedString" | 252 Name="LocalizedString" |
249 Value="@[#$(var.ControllerBinary)],-100"/> | 253 Value="@[#$(var.ControllerBinary)],-100"/> |
250 | 254 |
251 <RegistryKey Key="LocalServer32" Action="create"> | 255 <RegistryKey Key="LocalServer32" Action="create"> |
252 <RegistryValue Type="string" | 256 <RegistryValue Type="string" |
253 Value="[#$(var.ControllerBinary)]"/> | 257 Value="[#$(var.ControllerBinary)]"/> |
254 </RegistryKey> | 258 </RegistryKey> |
255 | 259 |
256 <RegistryKey Key="ProgID" Action="create"> | 260 <RegistryKey Key="ProgID" Action="create"> |
257 <RegistryValue Type="string" | 261 <RegistryValue Type="string" |
258 Value="$(var.ControllerProgid).1"/> | 262 Value="$(var.ControllerProgid).$(var.Version)"/> |
259 </RegistryKey> | 263 </RegistryKey> |
260 | 264 |
261 <RegistryKey Key="TypeLib" Action="create"> | 265 <RegistryKey Key="TypeLib" Action="create"> |
262 <RegistryValue Type="string" | 266 <RegistryValue Type="string" |
263 Value="$(var.ControllerTypelib)"/> | 267 Value="$(var.ControllerTypelib)"/> |
264 </RegistryKey> | 268 </RegistryKey> |
265 | 269 |
266 <RegistryKey Key="VersionIndependentProgID" Action="create"> | 270 <RegistryKey Key="VersionIndependentProgID" Action="create"> |
267 <RegistryValue Type="string" | 271 <RegistryValue Type="string" |
268 Value="$(var.ControllerProgid)"/> | 272 Value="$(var.ControllerProgid)"/> |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
410 </Custom> | 414 </Custom> |
411 <Custom Action="set_service_display_name" Before="InstallInitialize"> | 415 <Custom Action="set_service_display_name" Before="InstallInitialize"> |
412 <![CDATA[VersionNT >= 600]]> | 416 <![CDATA[VersionNT >= 600]]> |
413 </Custom> | 417 </Custom> |
414 <Custom Action="set_service_description" Before="InstallInitialize"> | 418 <Custom Action="set_service_description" Before="InstallInitialize"> |
415 <![CDATA[VersionNT >= 600]]> | 419 <![CDATA[VersionNT >= 600]]> |
416 </Custom> | 420 </Custom> |
417 </InstallExecuteSequence> | 421 </InstallExecuteSequence> |
418 </Product> | 422 </Product> |
419 </Wix> | 423 </Wix> |
OLD | NEW |