Hi!

You can set "log on as service" via the 
GroupPolicy/ComputerConfigurations/WindowsSetting/SecuritySettings/LocalPolicies/UserRigthsAssignment/Log
 on as a service for the user who should install and start the service.

You can start the Group Policy Editor with the command gpedit.msc in the "Run" 
box.

Yours sincerely

Silvio

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Rob Hamflett
Gesendet: Donnerstag, 01. März 2007 10:16
An: wix-users@lists.sourceforge.net
Betreff: Re: [WiX-users] starting service on install

I'm not sure why you're getting problems with LocalSystem.  The reason you're 
having trouble for 
other users though is probably because they don't have the 'start services' 
right.  You'll need a 
custom action to set this for whichever user.

Rob

Lindsay Harris wrote:
> Hi!
> 
>  
> 
> I have a service I am installing (that part is working fine), but when I 
> try to start it on install I am getting a "Error 1920. Service 
> 'AgpmEXEInstall' (AgpmEXEInstall) failed to start.  Verify that you have 
> sufficient privileges to start system services." error.  However when I 
> start it manually after install it starts up fine.  I have tried 
> installing the service to run as Local system and as an Administrator 
> user on the machine.  I am logged on as a Domain admin on a win2k3 r2 
> DC.  Here is my code snippet:
> 
>  
> 
> <Component Id="agpmEXEComponent" DiskId="1" Guid="{my guid here}" 
> Location='local'>
> 
>                 <File Id="AgpmEXE" Name="Agpm.exe" 
> src="$(var.BINDIR)\Agpm.exe" Vital="yes" KeyPath="yes" />
> 
>                 <ServiceControl Id="AgpmEXE" Name="AgpmEXEInstall" 
> Stop="uninstall"  Remove="uninstall Start="install" />
> 
>                 <ServiceInstall Id="AgpmEXE" Name="Agpm Service" 
> Start="auto"  ErrorControl="normal"  Type="ownProcess"
> 
>                                 Description="Advanced Group Policy 
> Management Service" Account="[DS_NET_API_LOGON_USERNAME]"
> 
>                                 Password="[IS_NET_API_LOGON_PASSWORD]" />
> 
>  </Component>
> 
>  
> 
>  
> 
> The Account and Password are input from the user in a dialog, before I 
> try to start my service.
> 
>  
> 
> I am not sure if this is wix specific, or some kind of windows installer 
> bug.
> 
>  
> 
> Any input would b very helpful,
> 
>  
> 
> Thanks!
> 
> Lindsay Harris
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to