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