[wix-users] Windows Service - Failed to Start
Phill Hogland
phill.hogland at rimage.com
Tue Sep 22 06:11:29 PDT 2015
Your ServiceInstall does not seem to specify a ServiceInstall at Account (or if the account has a password a ServiceInstall at Password). If you are specifying an account which is not a built-in service account, then you probably also need to either create the account or add LogonAsService (or possibly LogonAsBatch) permission to the account, which you can do by adding a util:User to a Component in the same ComponentGroup as your service. ServiceInstall requires a 'down-level' account name (domain\account) whereas util:User can take DNS names (I think).
Another post if info.
http://stackoverflow.com/questions/1114610/wix-installing-service-as-localservice
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Kubilay Özisik
Sent: Monday, September 21, 2015 8:58 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: [wix-users] Windows Service - Failed to Start
Hi everyone,
I have two windows services inside my installer. But during the installation, It can't start the services and saying that the user has sufficient privileges to start. The code I've written is below. What am I doing wrong here ?
<ComponentGroup Id="ServiceComponentGroup"
Directory="UPLOADERSERVICEDIRECTORY">
<Component Id="Service1" Guid="4F3DE5C1-7154-4c65-9816-248A85F6DEBF">
<File Id="Service1.exe"
Name="Service1.exe"
Source=".\Service\Service1.exe"
Vital="yes"
KeyPath="yes"
/>
<ServiceInstall
Id="ServiceInstaller"
Name="Service1"
DisplayName="Service1"
Description=" Service"
Start="auto"
ErrorControl="ignore"
Type="ownProcess"/>
<ServiceControl Id="scUploader_Start"
Name="Service1"
Start="install"
Wait="no" />
<ServiceControl Id="scUploader_Stop"
Name="Service1"
Stop="uninstall"
Remove="uninstall"
Wait="yes" />
</Component>
<ComponentGroupRef Id="Service1Components" /> </ComponentGroup> </Fragment>
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users
mailing list