Solved. The network service account needs to be specified with its domain.
From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: service fail to install due to
networkService accountDate: Thu, 22 May 2008 19:31:46 -0400
Hi, I have the following wix code to install a Windows service. The service is
not started during the install. When the Account is localSystem, the service is
installed correctly. However, when I change it to networkService, it fails with
"Error 1923. Service 'Foo' (FooService) could not be installed. Verify that
you have sufficient privileges to install system services." The msi is
installed with admin privilege. What am I missing? I could not understand what
is the relationship between the Account attribute and this failure behavior.
The service is not set to start at all during installation. Thanks for
help!Zhisheng <Component Id="c_$(var.WindowsServiceName)"
Guid="$(var.WindowsServiceComponentGuid)"
Directory="$(var.WindowsServiceDirectory)"> <File
Id="f_$(var.WindowsServiceName)" Name="$(var.WindowsServiceName)"
KeyPath="yes" Source="$(var.WindowsServiceAssemblyPath)" />
<ServiceInstall Id='$(var.WindowsServiceName)Install'
DisplayName='$(var.WindowsServiceDisplayName)'
Name='$(var.WindowsServiceName)' ErrorControl='normal'
Start='auto' Type='ownProcess'
Vital='yes'
Description='$(var.WindowsServiceDescription)'
Account='networkService'/> <ServiceControl
Id='$(var.WindowsServiceName)Install'
Name='$(var.WindowsServiceName)' Stop='both'
Remove='uninstall' Wait='yes' /> </Component>
Make every e-mail and IM count. Join the i’m Initiative from Microsoft.
_________________________________________________________________
Make every e-mail and IM count. Join the i’m Initiative from Microsoft.
http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ MakeCount
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users