Hi,
I am trying to use Wix to install a .Net service, and modify an existing
user to have LogonAsService rights.
The service is successfully installing, but no matter what I try with
the <User> action, I cannot get the installer to create a new user or
update an existing user.
The fragment of the wxs relevant to the service is:
<Component Id="ComponentServiceInstall"
Guid="CF701C05-A797-448a-83CE-3D951702EAEE" DiskId ="1">
<File Id="File.ServiceHostExeCopy" Name="ServiceExe" LongName
="ServiceExe" src="Components\ServiceHost\ManilaServiceHost.exe" Vital
="yes" />
<User Id="myuser" CreateUser="no" LogonAsService="yes"
Domain="[PROP.SERVICEDOMAIN]"
Name="[PROP.SERVICENAME]"
Password="[PROP.SERVICEPASSWORD]" UpdateIfExists="yes"/>
<ServiceInstall Start ="demand" Type ="ownProcess" Description ="Manila
Host Service" Name="ManilaServiceHost.exe" Password
="[PROP.SERVICEPASSWORD]"
Account ="[PROP.SERVICEDOMAIN]\[PROP.SERVICEUSERNAME]"
DisplayName ="Manila Host Service" Vital ="yes"
Id ="File.ServiceHostExeCopy" ErrorControl="normal" />
<ServiceControl Name="ManilaServiceHost.exe"
Remove="uninstall" Stop ="both" Id ="File.ServiceHostExeCopy" Wait
="yes"/>
</Component>
The section of the Log File when I run the installer for the User Action
is :
MSI (s) (08:D0) [12:01:24:356]: Doing action: ConfigureUsers
Action start 12:01:24: ConfigureUsers.
MSI (s) (08:E4) [12:01:24:372]: Invoking remote custom action. DLL:
C:\WINDOWS\Installer\MSI2.tmp, Entrypoint: ConfigureUsers
MSI (s) (08:E8) [12:01:24:387]: Generating random cookie.
MSI (s) (08:E8) [12:01:24:419]: Created Custom Action Server with PID
1004 (0x3EC).
MSI (s) (08:AC) [12:01:24:512]: Running as a service.
MSI (s) (08:50) [12:01:24:512]: Hello, I'm your 32bit Impersonated
custom action server.
MSI (s) (08!60) [12:01:24:778]: PROPERTY CHANGE: Modifying CreateUser
property. Its current value is '**********'. Its new value:
'**********'.
MSI (s) (08!60) [12:01:24:778]: Doing action: CreateUser
Action start 12:01:24: CreateUser.
Action ended 12:01:24: CreateUser. Return value 1.
Action ended 12:01:24: ConfigureUsers. Return value 1.
MSI (s) (08:D0) [12:01:24:794]: Doing action: InstallFiles
But when the installation has completed successfully the user still does
not have LogonAsService rights, which stops the service from running.
Any suggestions as to what is going wrong ?
Thanks
Peter Marshall.
REED ELSEVIER (UK) LIMITED - Registered office - 1-3 STRAND, LONDON WC2N 5JR
Registered in England - Company No. 02746621
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users