Does "Start" in ServiceControl override "Start" in ServiceInstall?  I want to 
"install" the service, but not have it auto-start.

I'm using a virtual service account, created by the service itself, and it has 
no password.

-----Original Message-----
From: Steven Ogilvie [mailto:steven.ogil...@titus.com] 
Sent: Wednesday, April 03, 2013 3:06 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Windows Service always starts (even when I don't want 
it to)

One issue I think you have is in the ServiceControl, you have it to Start on 
Install but to Stop on both Install and Uninstall...

If you want the service NOT to start to test, then take out Start="install"
After testing put back in Start="install" and change Stop="uninstall"

Question re ServiceIntall, What Account are you using? Does it have a password? 
If so you need to add it to the Password element

Steve

-----Original Message-----
From: George Fleming [mailto:gef...@microsoft.com]
Sent: April-03-13 5:41 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Windows Service always starts (even when I don't want it 
to)

I have Wix code that looks something like this to start a Windows service using 
a virtual service account:

        <File Id="****" Name="$(var.RunbookService.exe)" KeyPath="yes" 
Source="****" />
        <ServiceInstall Id='***'
                        Name='***'
                        DisplayName='****'
                        Type='ownProcess'
                        Start='auto'
                        ErrorControl='normal'
                        Description='****'
                        Account='[SERVICEACCOUNT]'
                        Vital='yes'/>
        <ServiceControl Id="StartServiceVirtualAccount" Start="install" 
Stop="both" Remove="uninstall" Name="***" Wait="yes" />

And it works fine in starting the service.  Problem is, lately the service has 
been crashing, and therefore I wish to temporarily disable auto-start of the 
service.  I modified the Start parameter to 'demand', but the install still 
fails as it tries to start the service anyway.  I also tried 'disabled', but 
the service crashes too!  What's going on?

Log file shows (I've masked out some fields):


MSI (s) (78:14) [14:10:16:326]: Executing op: 
ActionStart(Name=InstallServices,Description=Installing new 
services,Template=Service: [2]) MSI (s) (78:14) [14:10:16:326]: Executing op: 
ProgressTotal(Total=1,Type=1,ByteEquivalent=1300000)
MSI (s) (78:14) [14:10:16:326]: Executing op: 
ServiceInstall(Name=***,DisplayName=***,ImagePath="***.exe",ServiceType=16,StartType=4,ErrorControl=32769,,Dependencies=[~],,StartName=nt
 service\***,Password=**********,Description=***,,)
MSI (s) (78:14) [14:10:16:358]: Executing op: 
ActionStart(Name=StartServices,Description=Starting services,Template=Service: 
[1]) MSI (s) (78:14) [14:10:16:358]: Executing op: 
ProgressTotal(Total=1,Type=1,ByteEquivalent=1300000)
MSI (s) (78:14) [14:10:16:373]: Executing op: 
ServiceControl(,Name=***,Action=1,Wait=1,)
MSI (c) (DC:4C) [14:10:46:458]: Font created.  Charset: Req=0, Ret=0, Font: 
Req=MS Shell Dlg, Ret=MS Shell Dlg

Error 1920. Service '***' (***) failed to start.  Verify that you have 
sufficient privileges to start system services.

When I changed the Start field, I noticed in log that the StartType field went 
from 2 to 3(demand) to 4(disabled).  Eventlog shows that the service crashed.  
But why is it still starting the service?

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire the most 
talented Cisco Certified professionals. Visit the Employer Resources Portal 
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire the most 
talented Cisco Certified professionals. Visit the Employer Resources Portal 
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users




------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to