this is my Wix file (in part):

<util:User CreateUser="yes" Id="id_NewUser" Name="NewUser"

Password="password" Domain="[ComputerName]" FailIfExists="no"

      PasswordNeverExpires="yes" LogonAsService="yes"
RemoveOnUninstall="yes">

</util:User>

 

<ServiceInstall Id="newservice"

Name="newservice"

      DisplayName="New Service"

      Type="ownProcess"

      Interactive="no"

      Start="auto"

      ErrorControl="normal"

      Description="Blah blah "

      Account="NewUser"

      Password="password"

      Vital="yes">

      <util:PermissionEx User="NewUser" TakeOwnership="yes"
Domain="[ComputerName]" ServiceStart="yes" ServiceStop="yes"  />

</ServiceInstall>

 

I want to run "newservice" as user "NewUser" but with the Account and
Password set to those of "NewUser" the service refuses to install with
the error:

 

"Error 1923. Service 'New Service' (newservice) could not be installed.
Verify that you have sufficient privileges to install system services."

 

If I remove Account or Password attributes (or set them to
[SERVICEACCOUNTUSERNAME] and [SERVICEACCOUNTPASSWORD] ) the service
installs and starts fine. I can then manually change the ownership to
the newly created NewUser and restart the service no problem.

 

Thanks very much for your help.

Jeremy Langworthy

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to