I think you mean the "log on as a service" right, slight difference. 

Phil Wilson 


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rob
Hamflett
Sent: Tuesday, September 25, 2007 7:58 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Running Service under a User Account

Administrator doesn't have the 'start a service' right by default.
You'll need to add it.  The 
reason you can control a service from the Services panel is that the
right is added for you silently 
the first time you open that panel.

Rob

[EMAIL PROTECTED] wrote:
> Hi all,
>  
> I have a component that installs an exe and registers it as a service.
>  
> The problem I have is as soon as I add a user account to run under, it

> fails with a generic "Error 1923. Service 'BATCHCONTROLLER1' 
> (batchserviceamtbatchcontroller_exe) could not be installed.  Verify 
> that you have sufficient privileges to install system services."
error.
>  
> I am pretty sure the problem ISN'T privileges as both the account I am

> logged on as, and the account I am wanting to run the service under
are 
> in the administrators group on the machine (A Virtual PC running
Windows 
> 2003 Server SP2) 
>  
> The XML is as follows and works perfectly without the Account and 
> Password options, but as soon as I add them it errors. 
>  
>     <DirectoryRef Id="batchservice">
>       <Component Id="batchserviceamtbatchcontroller_exe" 
> Guid="7E9DACCD-F3E4-46A3-884D-6065C2199255" DiskId="1">
>         <File Id="BatchServiceAmtBatchController_exe" 
> LongName="AmtBatchController.exe" Name="AMTBAT~1.EXE" 
> src="$(var.buildpath)\BatchService\AmtBatchController.exe"
KeyPath="yes" />
>         <ServiceInstall Id='BatchControllerServiceInstall' 
> DisplayName='BATCHCONTROLLER1'
Name='batchserviceamtbatchcontroller_exe' 
> ErrorControl='normal' Start='auto' Type='ownProcess' Vital='yes' 
> Account="ServiceUser" Password="password1"/>
>         <ServiceControl Id='BatchControllerServiceControl' 
> Name='batchserviceamtbatchcontroller_exe' Stop='both'
Remove='uninstall' 
> Wait='yes' />
>       </Component>
>     </DirectoryRef>
>  
> Am I overlooking something obvious?  
> 
>  
>  
>  
> */Pete Yates
> Senior Systems Developer/*
> DDC - Distributed & Components Team
> HBOS I&I IT 
> B3D/22
> (7700) 22069  /  (01275) 552069
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>  
> 
> .
>
------------------------------------------------------------------------
--------------------------------------------
> 
> HBOS plc, Registered in Scotland No. SC218813. Registered Office: The
Mound, Edinburgh EH1 1YZ. HBOS plc is a holding company, subsidiaries of
which are authorised and regulated by the Financial Services Authority.
>
========================================================================
======
> 
> 
>
------------------------------------------------------------------------
> 
>
------------------------------------------------------------------------
-
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> 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


------------------------------------------------------------------------
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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

Reply via email to