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® 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users