That message about privilege shows up no matter what the error is, so take it
with a grain of salt. In your case, I'm suspicious of your Name values - they
should be the same for ServiceInstall and ServiceControl.
Are you getting error 1920?
Phil Wilson
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jose Sanchez
Saldana (Excell Data Corporation)
Sent: Monday, May 05, 2008 1:53 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Service fails to install due to insufficient permissions
When trying to install a service through WIX, I use the following code:
ServiceInstall Id=DataServiceInstall
Name=Data Service
DisplayName=Data Service
ErrorControl=normal
Type=ownProcess
Start=auto
Vital=yes
Account=[USERNAME]
Password=[PASSWORD]
/ServiceInstall
User Id=DataUser
Name=[USERNAME]
CreateUser=no
FailIfExists=no /
ServiceControl Id=DataServiceControl
Name=DataSvc
Start=install
Stop=uninstall
Remove=uninstall
Wait=yes/
There are USERNAME and PASSWORD properties, which are passed in through the
command-line. The account in question, in turn, requires Logon as Service and
Logon as Batch Service permissions before installation - both of which have
been granted. Despite this, the service refuses to install - it says there are
insufficient priviledges to do so - and so now I wonder if the problem lies
with the account at all. Any ideas? Thanks.
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users