I'm attempting to install a service and receiving the dreaded "1923" error.
Along with the service I'm also creating the user that the service will "log
on as" in the same install. I then assign the created account and password
to my service.

The confusing part (to me) is that if I run the install without assigning an
account and password to the service, the install is successful. I can then
go in to the SCM after the install and assign the account which was just
created with the install and the service will start.

I'm using XP and am myself a local admin.

There was a similar sounding post on the mailing list last year, but it
doesn't appear that it was resolved.
http://www.nabble.com/Running-Service-under-a-User-Account-tt12879873.html
Running Service Under a User Account 

Below are the specifically involved WIX nodes I'm using (note I removed the
guid for space reasons):
...
<util:Group Id="UsersGroup" Name="Users"/>
<Directory Id="TARGETDIR" Name="SourceDir">
        <Directory Id="ProgramFilesFolder">
                <Directory Id="ManufacturerFolder" Name="Company">
                        <Directory Id="INSTALLLOCATION" Name="Product">
                                <Component Id="CreateService" Guid="myGuid">
                                        <util:User Id="ServiceAccount" 
                                                CreateUser="yes" 
                                                LogonAsService="yes" 
                                                RemoveOnUninstall="yes"
                                                Name="ServiceAccount" 
                                                Password="Password0!" 
                                                PasswordNeverExpires="yes" 
                                                UpdateIfExists="yes"
                                                Domain="$(env.COMPUTERNAME)">
                                                <util:GroupRef Id="UsersGroup"/>
                                        </util:User>
                                        <File Id="ControllerServiceEXE" 
Name="ControllerService.exe" 
                                                Vital="yes" KeyPath="yes"
                                                
Source="C:\ControllerService.exe"/>
                                        <ServiceInstall Id="InstallTestService" 
Name="ControllerService"
                                                Type="ownProcess" 
DisplayName="MarksTestService" 
                                                Start="demand" 
ErrorControl="normal"
                                                Account="ServiceAccount" 
Password="Password0!"/>
                                        <ServiceControl Id="InstallTestService" 
Name="ControllerService" 
                                                Remove="uninstall" Wait="yes" 
Stop="both"/>
                                </Component>
                        </Directory>
                </Directory>
        </Directory>
</Directory>
...


Any help is appreciated.
Mark
-- 
View this message in context: 
http://www.nabble.com/Service-Install-Problem-tp18832907p18832907.html
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to