If it is a dependency issue, you might be able to use the following to address it.

<Component>
 <ServiceInstall>
   <ServiceDependency Id="" />
 </ServiceInstall>
</Component>

In our case, we have a number of Windows Services that process messages in MSMQs. This dependency declaratively identifies our Windows Service (defined under the Service Install element) as dependent upon MSMQ.

David Adams
MSN MessengerID: [EMAIL PROTECTED]





From: lindsayH <[EMAIL PROTECTED]>
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] starting service on install
Date: Mon, 5 Mar 2007 09:28:35 -0800 (PST)
MIME-Version: 1.0
Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by bay0-mc7-f15.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Mon, 5 Mar 2007 09:29:04 -0800 Received: from sc8-sf-list1-new.sourceforge.net (sc8-sf-list1-new-b.sourceforge.net [10.3.1.93])by sc8-sf-spam2.sourceforge.net (Postfix) with ESMTPid DA3D91206F; Mon, 5 Mar 2007 09:29:03 -0800 (PST) Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92]helo=mail.sourceforge.net)by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43)id 1HOGzO-0000qt-PGfor wix-users@lists.sourceforge.net; Mon, 05 Mar 2007 09:28:49 -0800 Received: from www.nabble.com ([72.21.53.35] helo=talk.nabble.com)by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256)(Exim 4.44) id 1HOGzG-00073E-JHfor wix-users@lists.sourceforge.net; Mon, 05 Mar 2007 09:28:40 -0800 Received: from [72.21.53.38] (helo=jubjub.nabble.com)by talk.nabble.com with esmtp (Exim 4.50) id 1HOGzD-0002Q2-UCfor wix-users@lists.sourceforge.net; Mon, 05 Mar 2007 09:28:35 -0800
X-Message-Info: LsUYwwHHNt3tJXjpPKFk7X8DB+GpkrnXRDDcXKu9HR0=
X-Nabble-From: [EMAIL PROTECTED]
References: <[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]>
X-Spam-Score: -2.8 (--)
X-Spam-Report: Spam Filtering performed by sourceforge.net.See http://spamassassin.org/tag/ for more details.Report problems tohttp://sf.net/tracker/?func=add&group_id=1&atid=200001-2.8 ALL_TRUSTED Did not pass through any untrusted hosts
X-BeenThere: wix-users@lists.sourceforge.net
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: "General discussion for Windows Installer XML toolset."<wix-users.lists.sourceforge.net> List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/wix-users>,<mailto:[EMAIL PROTECTED]> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum=wix-users>
List-Post: <mailto:wix-users@lists.sourceforge.net>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/wix-users>,<mailto:[EMAIL PROTECTED]>
Errors-To: [EMAIL PROTECTED]
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 05 Mar 2007 17:29:04.0826 (UTC) FILETIME=[C5C079A0:01C75F4B]


Hi Phil, thanks for your response, I gave up and now I am just starting the
service from the comand line in a custom action, and it works fine.

Thanks!
Lindsay


Wilson, Phil wrote:
>
> 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
>
>

--
View this message in context: http://www.nabble.com/starting-service-on-install-tf3321289.html#a9316216
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

_________________________________________________________________
Find what you need at prices you’ll love. Compare products and save at MSN® Shopping. http://shopping.msn.com/default/shp/?ptnrid=37,ptnrdata=24102&tcode=T001MSN20A0701


-------------------------------------------------------------------------
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