Microsoft has never documented how the shared service
hosting through SvcHost.exe works, so it's pretty much only MS who can create
such a service. The Type can be set to "shareProcess", but I think this is still
meant for installing your own EXE which hosts multiple services, rather than a
DLL which uses SvcHost.exe. Windows Installer uses the KeyPath of the component
as the ImagePath for the service, as you've discovered.
Your best bet may be to find out from the Windows Installer
team how you're meant to do this with the ServiceInstall table. It may not be
possible.
--
Mike Dimmick From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Byron Changuion Sent: 07 November 2006 23:25 To: wix-users@lists.sourceforge.net Subject: [WiX-users] How do I install a Win32 service that uses SvcHost.exe? Hi, I have a Win32 service that should be installed with my
MSI. The typical WIX entry for a service would look something
like: <Component Id='MyDemoComponents'
Guid='11111111-1111-1111-1111-111111111111'> <File Id="MyServiceDll"
Name='MySvcDll.dll' LongName='MyService.dll' DiskId='1'
src='' Vital='yes'/> <ServiceInstall
Id="MyServiceInstall"
Name="MyService"
DisplayName="My Service Name"
Description="My Service Description"
Type="ownProcess"
Interactive="no"
Start="auto"
Vital="yes"
ErrorControl="normal"> </ServiceInstall> </Component> However, this produces an ImagePath service entry that
references MyService.Dll, whereas I need to specify something like
“%SystemRoot%\system32\svchost.exe -k MySvcHostGroup”. Cheers, -Byron. |
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users