The error message always says "verify that you have .. privileges...", and sometimes that is the error, but error 1920 is just a generic one meaning that the service start failed. If it starts ok after the install, then it smells like a dependency issue with something that isn't on the system at StartServices time.
Phil Wilson -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of lindsayH Sent: Saturday, March 03, 2007 8:02 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] starting service on install Hi guys thanks so much for your replies... unfortunatley, I AM setting the 'log on as a service' right. I even tried giving myself the 'act as part of the os' right, and I still apparently don't have "sufficient privileges to start system services", and neither does local system.... I was thinking maybe my install wasn't running with enough priviliges, but I have set the [EMAIL PROTECTED]"elevated". So.. I'm not sure whats wrong..... :( thanks! Lindsay Ziegelwanger, Silvio-2 wrote: > > > Hi! > > You can set "log on as service" via the > GroupPolicy/ComputerConfigurations/WindowsSetting/SecuritySettings/Loc > alPolicies/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=DE >> VDEV >> >> >> --------------------------------------------------------------------- >> --- >> >> _______________________________________________ >> 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=DEV > DEV _______________________________________________ > 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=DEV > DEV _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > -- View this message in context: http://www.nabble.com/starting-service-on-install-tf3321289.html#a9292679 Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- 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