Hi,
   I have windows service: ServiceContoller.exe and user with Admin
previledge. I want to install and start the service using the existing user
(log on As). I have the following in the script:

 <Component Id='ServiceCom' Guid='MyGUID'>
        <File Id='service.exe' Name='service.exe' 
LongName="ServiceContoller.exe" 

DiskId='1' 

Source='C:\projects\Service\ServiceContoller.exe' 

Vital='yes' />
              
             <ServiceInstall Id='service.exe' Name='TestService1'
DisplayName='Test 

service-1' Type='ownProcess' Interactive='yes' Start='auto' Vital='yes' 

ErrorControl='normal'/>
        <ServiceControl Id="startservice" Name="TestService1" Start="install"
Stop="both" 

Remove="uninstall" 
Wait="yes" />
         
        <User Id="myuser" CreateUser='no' LogonAsService='yes' 
Domain='MyDomain' 

Name="username" Password="password"/>
        
            </Component>

The service is installed and started, but it is installed as "Local System".
How can I install it with existing user supplied through <User> tag?

Please let me know if you have any idea.

Thanks! 
-- 
View this message in context: 
http://www.nabble.com/Installing-Windows-services-using-Existing-user-tp14848464p14848464.html
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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

Reply via email to