In the end it was the the exe.config file not being included with the 
serice.exe file.

I added the following in the service component and it works.

              <File Id='ServiceConfig' Name='Call Manager 
Service.exe.config'
                Source='Call Manager Service.exe.config' ReadOnly='no'  
Vital='yes' Hidden='no' System='no' Checksum='no' />

Thanks for all your help identifying this.



Wilson, Phil wrote:
> If it can be started ok after the install then the issue could be 
> dependencies.  If it's dependent on an assembly in the GAC or (on Vista) the 
> C++ CRT support being installed from a merge module these won't be available 
> at StartServices time.
>
> Phil Wilson
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Graham Vickrage
> Sent: Wednesday, January 02, 2008 10:42 AM
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] Problem Starting service on XP
>
> I am trying to install and start a service but its coming back with.
> Error msg: Verify that you have sufficient priveleges to start system 
> services. I am running the msi file as an administrator.
>
> I can install / start the service manually but not via wix, has anyone seen 
> this before and do they have sample code?
>
> Much appreciated.
>
> Graham
>
> Code:
>
>             <Component Id='ServiceExeComponent' 
> Guid='6ca52ece-6346-4bbf-ae10-248cc3ab74c4'
>               SharedDllRefCount='no' KeyPath='no' NeverOverwrite='no' 
> Permanent='no' Transitive='no'
>               Win64='no' Location='either'>
>
>               <File Id='ServiceExeFile' Name='Call Manager Service.exe' 
> DiskId='1'
>                 Source='Call Manager Service.exe' ReadOnly='no' KeyPath='yes' 
> Vital='yes' Hidden='no' System='no'
>                 Checksum='no' />
>
>               <ServiceInstall Id='CMServiceInstall' DisplayName='Call Manager 
> Service' Name='Call Manager Service'
>                 ErrorControl='normal' Start='auto' Type='ownProcess' 
> Vital='yes' Interactive="no" />
>
>               <ServiceControl Id='CMServiceControl' Name='Call Manager 
> Service'
>                 Start='install' Stop='both' Remove='uninstall' Wait='yes' />
>             </Component>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft Defy all challenges. 
> Microsoft(R) Visual Studio 2005.
> 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
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> 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
>   

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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