Good point, I'd not actually realised that the ServiceInstall doesn't link to the file by any specific property. I think I will stick to my method of keeping it all in one component.
Thanks Neil -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Mensching Sent: 10 July 2008 21:02 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] ServiceInstall Advise I thought that ServiceInstall would only point at the KeyPath of the Component it is installed in. If my memory is correct, that would mean the ServiceInstall *must* be in the Component with the File that serves as the service. ServiceControl can be in any Component because you may have interesting Conditions in play to control the service just so. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Neil Sleightholm Sent: Tuesday, July 08, 2008 03:49 To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] ServiceInstall Advise I am installing a service by using a fragment like this: <Component Id="Service" ... > <File Id="Service" ... /> <ServiceInstall Id="Service" ... /> <ServiceControl Id="StartService" ... /> <ServiceControl Id="StopService" ... /> </Component> Is this a good or bad structure, should the ServiceInstall and ServiceControl be in their own components, e.g.: <Component Id="Service" ... > <File Id="Service" ... /> </Component> <Component Id="ServiceStuff" ... > <ServiceInstall Id="Service" ... /> <ServiceControl Id="StartService" ... /> <ServiceControl Id="StopService" ... /> </Component> Are there any advantages or disadvantages to the structure I have used? Thanks Neil Neil Sleightholm X2 Systems Limited [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ------------------------------------------------------------------------ - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------ - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users