Actually I tried to use the User element. I have put CreateUser='no' as the user already exists in the machine. I have also tested both with and without the 'UpdateIfExists' field. I am still getting the same erroe message.
Please let me know if you have any idea. My latest script has the following: <Component Id='ServiceCom' Guid='MyGUID'> <User Id="myuser" CreateUser='no' LogonAsService='yes' Domain='MyDomain' Name="MyUsername" Password="mypassword" UpdateIfExists='yes'/> <File Id='service.exe' Name='service.exe' LongName="ServiceContoller.exe" DiskId='1' Source='C:\projects\Service\ServiceContoller.exe' Vital='yes' /> <ServiceInstall Id='service.exe' Account="MyDomain\MyUsername" Password="mypassword" 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" /> </Component> Bob Arnson-6 wrote: > > shapla wrote: >> <ServiceInstall Id='service.exe' Name='TestService1' >> DisplayName='Test >> >> service-1' Type='ownProcess' Interactive='yes' Start='auto' Vital='yes' >> >> ErrorControl='normal'/> >> > > ServiceInstall has Account and Password attributes to specify the user > account. (The User element is still needed to create the account.) > > -- > sig://boB > http://joyofsetup.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 > > -- View this message in context: http://www.nabble.com/Installing-Windows-services-using-Existing-user-tp14848464p14888276.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