Chromium Code Reviews| 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 <?ifdef OfficialBuild ?> | 7 <?ifdef OfficialBuild ?> |
| 8 <?define ChromotingHost = "Chrome Remote Desktop Host" ?> | 8 <?define ChromotingHost = "Chrome Remote Desktop Host" ?> |
| 9 <?define FirewallName = "Chrome Remote Desktop Host" ?> | 9 <?define FirewallName = "Chrome Remote Desktop Host" ?> |
| 10 <?define Manufacturer = "Google Inc." ?> | 10 <?define Manufacturer = "Google Inc." ?> |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 101 Name="remoting_service.exe" | 101 Name="remoting_service.exe" |
| 102 Vital="yes"/> | 102 Vital="yes"/> |
| 103 | 103 |
| 104 <ServiceInstall Id="install_service" | 104 <ServiceInstall Id="install_service" |
| 105 Type="ownProcess" | 105 Type="ownProcess" |
| 106 Vital="yes" | 106 Vital="yes" |
| 107 Name="$(var.ServiceName)" | 107 Name="$(var.ServiceName)" |
| 108 DisplayName="@[#remoting_service.exe],-101" | 108 DisplayName="@[#remoting_service.exe],-101" |
| 109 Description="@[#remoting_service.exe],-102" | 109 Description="@[#remoting_service.exe],-102" |
| 110 Arguments="--host-binary="[#remoting_me2me_host.exe ]" --auth-config="[config_files]host.json" --host-config="[c onfig_files]host.json"" | 110 Arguments="--host-binary="[#remoting_me2me_host.exe ]" --auth-config="[config_files]host.json" --host-config="[c onfig_files]host.json"" |
| 111 Start="auto" | 111 Start="demand" |
| 112 Account="LocalSystem" | 112 Account="LocalSystem" |
| 113 ErrorControl="ignore" | 113 ErrorControl="ignore" |
| 114 Interactive="no" /> | 114 Interactive="no" /> |
| 115 | 115 |
| 116 <ServiceControl Id="start_service" | 116 <ServiceControl Id="start_service" |
| 117 Stop="both" | 117 Stop="both" |
| 118 Remove="uninstall" | 118 Remove="uninstall" |
| 119 Name="$(var.ServiceName)" | 119 Name="$(var.ServiceName)" |
| 120 Wait="yes" /> | 120 Wait="yes" /> |
| 121 | 121 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 280 Value="[binaries]"/> | 280 Value="[binaries]"/> |
| 281 </RegistryKey> | 281 </RegistryKey> |
| 282 </RegistryKey> | 282 </RegistryKey> |
| 283 </RegistryKey> | 283 </RegistryKey> |
| 284 </RegistryKey> | 284 </RegistryKey> |
| 285 </RegistryKey> | 285 </RegistryKey> |
| 286 | 286 |
| 287 </Component> | 287 </Component> |
| 288 </DirectoryRef> | 288 </DirectoryRef> |
| 289 | 289 |
| 290 <!-- The service is always installed in the stopped state with start type | |
| 291 set to 'manual'. This becomes a problem when upgrading an exitsing | |
|
Wez
2012/04/10 21:26:20
typo: existing
alexeypa (please no reviews)
2012/04/10 22:18:16
Done.
| |
| 292 installation that is configured to start the service automatically. | |
| 293 | |
| 294 Here we check if the service was configured to start automatically | |
| 295 before any changes to the system were made. After the installation is | |
|
Wez
2012/04/10 21:26:20
nit: This wording could be clearer; we check the s
alexeypa (please no reviews)
2012/04/10 22:18:16
Well, the wording above is incorrect.
| |
| 296 complete we start the service (via the controller component) if it was | |
| 297 configured to start automatically. --> | |
| 298 <Property Id="CHROMOTING_SERVICE_START_TYPE"> | |
| 299 <RegistrySearch Id="chromoting_service_start_type" | |
| 300 Root="HKLM" | |
| 301 Key="SYSTEM\CurrentControlSet\services\$(var.ServiceName)" | |
| 302 Name="Start" | |
| 303 Type="raw" /> | |
| 304 </Property> | |
| 305 | |
| 306 <CustomAction Id="query_auto_start_service" | |
| 307 Property="auto_start_service" | |
| 308 Value="[CHROMOTING_SERVICE_START_TYPE]" /> | |
| 309 | |
| 310 <CustomAction Id="set_auto_start_service" Script="jscript"> | |
| 311 <![CDATA[ | |
| 312 var controller = new ActiveXObject("$(var.ControllerProgid)"); | |
| 313 controller.StartDaemon(); | |
| 314 ]]> | |
| 315 </CustomAction> | |
| 316 | |
| 290 <UIRef Id="WixUI_ErrorProgressText" /> | 317 <UIRef Id="WixUI_ErrorProgressText" /> |
| 291 | 318 |
| 292 <Feature Id="chromoting_host" Level="1" Title="$(var.ChromotingHost)"> | 319 <Feature Id="chromoting_host" Level="1" Title="$(var.ChromotingHost)"> |
| 293 <ComponentRef Id="omaha_registration"/> | 320 <ComponentRef Id="omaha_registration"/> |
| 294 <ComponentRef Id="remoting_host"/> | 321 <ComponentRef Id="remoting_host"/> |
| 295 <ComponentRef Id="sas.dll"/> | 322 <ComponentRef Id="sas.dll"/> |
| 296 <ComponentRef Id="service_controller"/> | 323 <ComponentRef Id="service_controller"/> |
| 297 </Feature> | 324 </Feature> |
| 298 | 325 |
| 326 <InstallExecuteSequence> | |
| 327 <Custom Action="query_auto_start_service" Before="InstallInitialize"/> | |
| 328 <Custom Action="set_auto_start_service" After="InstallFinalize">NOT INSTALLE D AND (auto_start_service = "#2")</Custom> | |
| 329 </InstallExecuteSequence> | |
| 330 | |
| 299 </Product> | 331 </Product> |
| 300 </Wix> | 332 </Wix> |
| OLD | NEW |