The answer seems to be to prefix the account name like this:

Account=".\monikasvc"


I'm guessing the ".\" means the current domain or workspace...
I got this from looking at another service that was installed under a 
particular username (PostgreSQL).  Seems to work on Windows XP and 
Windows 7 just fine.

Thanks,

Mark.
--

On 28/03/2010 14:23, Mark Simonetti wrote:
> Hi all,
> I'm getting an error 1923 when trying to install a service.  It works
> fine if a use the "NT AUTHORITY/NETWORK SERVICE" username, but I'm
> trying to use a specially created account.  I know the account can run
> services because the database service already uses it.
>
> Here is the code for creating the user and installing the account:
>
> <util:User Id="ServiceAccount.User"
>                      CanNotChangePassword="yes"
>                      CreateUser="yes"
>                      FailIfExists="no"
>                      PasswordNeverExpires="yes"
>                      PasswordExpired="no"
>                      RemoveOnUninstall="yes"
>                      UpdateIfExists="no"
>                      Disabled="no"
>                      Name="monikasvc"
>                      Password="monika"
>                      LogonAsService="yes">
> <util:GroupRef Id="UsersGroup"/>
> </util:User>
>
> And for the service:
>
> <File Source="../Release/appserver.exe" DiskId="1" KeyPath="yes">
> <Permission GenericAll="yes" User="Everyone" />
> </File>
>
> <ServiceControl Id="Monika.AppServer.ServiceControl"
>                               Name="MonikaApplicationService"
>                               Start="install"
>                               Stop="both"
>                               Remove="uninstall"
>                               Wait="yes" />
>
> <ServiceInstall Id="Monika.AppServer.ServiceInstall"
>                               Name="MonikaApplicationService"
>                               DisplayName="Monika Application Service"
>                               Account="monikasvc"
>                               Password="myaccountpassword"
>                               Type="ownProcess"
>                               Interactive="no"
>                               Start="auto"
>                               ErrorControl="normal"
>                               Description="Monika Application Service" />
>
> I've tried searching for a solution already but they all seem to be dead
> ends, and suggest just using a built in account like "NT
> AUTHORITY\NETWORK SERVICE" (which DOES work)  - but I must use a custom
> account created by the installer.
>
> Any thoughts?
>
> Thanks!
>
> Mark.
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>    


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to