Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Side by Side Diff: remoting/host/installer/win/chromoting.wxs

Issue 1071013002: Set the startup type to auto in windows setup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698