This is one way to do it. You can make 2 variations of the component, one for each scenario, and then put mutually exclusive component <Condition>s in the components.
e.g. install condition requiring either sql express or sql server or both be present on the machine component 1: condition: sql server detected service install dependency on sql server component 2: condition: sql express detected and not sql server detected service install dependency on sql express -----Original Message----- From: Mark Modrall [mailto:mmodr...@mzinga.com] Sent: 29 June 2010 20:49 To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] ServiceInstall/ServiceDependency Hi... I've been slapping together an installer for a window service, and I added <ServiceDependency Id="MSMQ" /> <ServiceDependency Id="MSSQLServer" /> To the .wxs file. When I ran the resulting msi on my dev box, the service was installed but not all the dependencies applied. Specifically, I have SqlExpress on my dev box, but not the full Sql Server. When I looked at the properties of the installed service, it had the MSMQ dependency, but the Sql Server one was simply dropped. So a) Is there any way to get it to put the dependency in even when the dependency isn't there? (i.e. it won't run until the other dependency is installed) or b) Is there any way to make the msi conditional (i.e. either Sql Server *or* SqlExpress are there)? Thanks Mark ------------------------------------------------------------------------ ------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users </pre> <BR style="font-size:4px;"> <a href = "http://www.sdl.com"><img src="http://www.sdl.com/images/email logo_150dpi-01.png" alt="www.sdl.com" border="0"/></a> <BR> <font face="arial" size="2" "><a href = "http://www.sdl.com" style="color:005740; font-weight: bold">www.sdl.com</a> <BR> <BR> <font face="arial" size="1" color="#736F6E"> <b>SDL PLC confidential, all rights reserved.</b> If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us.<BR> SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207.<BR> Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. </font> ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users