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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users