Thank you Bob. Here is the more details: The error message I am getting during Installing the service. I actually don't want to create the user. I want to use an exsiting user. The verbose log is showing as follows:
Action 11:55:06: InstallServices. Installing new services Error 1923. Service 'Test service-1' (TestService1) could not be installed. Verify that you have sufficient privileges to install system services. MSI (s) (7C:A0) [11:55:08:035]: Product: SPI -- Error 1923. Service 'Test service-1' (TestService1) could not be installed. Verify that you have sufficient privileges to install system services. The scipt has this: <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> Please let me know if you have any idea. Bob Arnson-6 wrote: > > shapla wrote: >> 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. >> > > You didn't mention an error message. Is it from creating the user or > installing the service? What does a verbose log say? > > -- > 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-tp14848464p14925885.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