Hi, I've separated my WiX installer into multiple fragment files. My windows service is broken into "ServiceFiles.wxs" and "ServiceActions.wxs", for example. I ran into an issue where my service wasn't getting installed because it wasn't in the same component as the executable anymore. Like so:
<Component Id="WindowsService_InstallService" Guid="{8DE953A1-2D84-42ba-8A03-0A0F79CC3BCC}"> <CreateFolder /> <ServiceInstall Id="InstallService" ErrorControl="normal" Name="Windows Service" Start="auto" Type="ownProcess" Description="Description..." DisplayName="Windows Service" Account="[SERVICE_DOMAIN]\[SERVICE_ACCOUNT]" Password="[SERVICE_PASSWORD]" Vital="yes" /> </Component> If I move the "ServiceInstall" back into the component with the file it works fine: <Component Id="WindowsService.exe" Guid="*"> <File Id="WindowsService.exe" KeyPath="yes" Source="Published\Service\WindowsService.exe" /> <ServiceInstall Id="InstallService" ErrorControl="normal" Name="Windows Service" Start="auto" Type="ownProcess" Description="Description..." DisplayName="Windows Service" Account="[SERVICE_DOMAIN]\[SERVICE_ACCOUNT]" Password="[SERVICE_PASSWORD]" Vital="yes" /> </Component> Is there any way to separate the "ServiceInstall" out from the file component? I'd like to keep my files in one fragment and actions on another. I'm guessing "no" because there's no way to specify the "binPath" of the service but I thought I'd ask. Thanks, Chris McKinnon The information contained in this e-mail is confidential and may contain privileged information. It is intended only for the person or persons named above. If you are not an intended recipient of this e-mail please be advised that any distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify us by return e-mail and delete all copies of the e-mail and any attachments. ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users