I'm installing a service as part of my install using Wix 3. Here's the (slightly modified) code I use:
<Component Id="MyService.exe" Guid="{11111111-1111-1111-1111-111111111111}"> <File Id="MyService.exe" Name="MyService.exe" KeyPath="yes" Source="C:\BuildOutput\MyService.exe" /> <ServiceInstall Id="MyService.exe.ServiceInstall" Name="MyService" DisplayName="My Special Service" ErrorControl="ignore" Start="auto" Type="ownProcess" /> <ServiceControl Id ="MyService.exe.ServiceControl" Name="MyService" Start="install" Stop="uninstall" Remove="uninstall" Wait="yes" /> </Component> Hope it helps. Anthony From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Mensching Sent: Thursday, November 23, 2006 10:50 AM To: Byron Changuion; wix-users@lists.sourceforge.net Subject: Re: [WiX-users] How do I install a Win32 service that uses SvcHost.exe? AFAIK, the Windows Installer doesn't support creating services like that. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Byron Changuion Sent: Tuesday, November 07, 2006 15: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='$(env.MySourceDir)\MyService.dll' 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.
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users