Windows Installer doesn't really support that scenario unfortunately.  They 
require the ServiceInstall to point at the KeyPath of the Component (the File 
in this case) and you can't duplicate the file in different Components... 
unless the file is in different directories.

Basically, putting multiple services in a single executable is not supported 
natively.  It's kinda' weird too.  <smile/>

-----Original Message-----
From: Cromwell, Ryan (LNSSI-Dayton) [mailto:ryan.cromw...@lnssi.com]
Sent: Friday, December 12, 2008 11:31
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Criteria for ServiceInstall

I have successfully created an install which uses the same EXE to
install two different Windows Services using ServiceInstall.  It was
pretty simple.  Looks something like this:



<Component>

    <File ...>

    <ServiceInstall Name="Service1" ... />

    <ServiceInstall Name="Service2" ... />

</Component>



My dilemma is figuring out a way to have two distinct Features for each
service.



If they select Feature1 and Feature2 both services should install, but
they could exclude one or both of the service registrations if they
like.  I tried having two components, but it balked at using the same
EXE in two different components.  Any ideas?



Thanks,

Ryan

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to