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" ?> |
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 <CustomAction Id="query_auto_start_service" | 557 <CustomAction Id="query_auto_start_service" |
558 Property="auto_start_service" | 558 Property="auto_start_service" |
559 Value="[CHROMOTING_SERVICE_START_TYPE]" /> | 559 Value="[CHROMOTING_SERVICE_START_TYPE]" /> |
560 | 560 |
561 <CustomAction Id="start_chromoting_service" | 561 <CustomAction Id="start_chromoting_service" |
562 Impersonate="no" | 562 Impersonate="no" |
563 Execute="deferred" | 563 Execute="deferred" |
564 Script="jscript"> | 564 Script="jscript"> |
565 <![CDATA[ | 565 <![CDATA[ |
566 var ADS_SERVICE_STOPPED = 0x00000001; | 566 var ADS_SERVICE_STOPPED = 0x00000001; |
| 567 var ADS_SERVICE_AUTO_START = 2; |
567 var service = GetObject("WinNT://./$(var.ServiceName),Service"); | 568 var service = GetObject("WinNT://./$(var.ServiceName),Service"); |
| 569 service.StartType = ADS_SERVICE_AUTO_START; |
| 570 service.SetInfo(); |
568 if (service.Status == ADS_SERVICE_STOPPED) { | 571 if (service.Status == ADS_SERVICE_STOPPED) { |
569 service.Start(); | 572 service.Start(); |
570 } | 573 } |
571 ]]> | 574 ]]> |
572 </CustomAction> | 575 </CustomAction> |
573 | 576 |
574 <CustomAction Id="set_service_display_name" | 577 <CustomAction Id="set_service_display_name" |
575 Property="chromoting_service_display_name" | 578 Property="chromoting_service_display_name" |
576 Value="@[binaries]$(var.CoreBinary),-101" /> | 579 Value="@[binaries]$(var.CoreBinary),-101" /> |
577 <CustomAction Id="set_service_description" | 580 <CustomAction Id="set_service_description" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
634 <Custom Action="set_service_description" Before="InstallInitialize"> | 637 <Custom Action="set_service_description" Before="InstallInitialize"> |
635 <![CDATA[VersionNT >= 600]]> | 638 <![CDATA[VersionNT >= 600]]> |
636 </Custom> | 639 </Custom> |
637 | 640 |
638 <!-- Schedule RemoveExistingProducts before installing any files. | 641 <!-- Schedule RemoveExistingProducts before installing any files. |
639 See http://msdn.microsoft.com/en-us/library/aa371197.aspx. --> | 642 See http://msdn.microsoft.com/en-us/library/aa371197.aspx. --> |
640 <RemoveExistingProducts After="InstallInitialize" /> | 643 <RemoveExistingProducts After="InstallInitialize" /> |
641 </InstallExecuteSequence> | 644 </InstallExecuteSequence> |
642 </Product> | 645 </Product> |
643 </Wix> | 646 </Wix> |
OLD | NEW |