We have the same problem, would love a solution.

Did you try creating two components with services, one with a dependency and 
another without? Then condition them based on, say, SQLSERVER_IS_LOCAL. Try 
setting and not setting the property and see if that works.

Once it does, you can start trying to figure out what a "local" instance means. 
It would go a long way checking for basic names (eg. (local)). We're using 
http://msiext.codeplex.com, it would be implementable to properly figure out 
whether the instance is actually local.

Thx
dB.

dB. @ dblock.org 
Moscow|Geneva|Seattle|New York



-----Original Message-----
From: Will Sullivan [mailto:wsulli...@softdocs.com] 
Sent: Wednesday, June 23, 2010 2:21 PM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Dependency on Sql Server

My service uses an instance of Sql Server.  Now, if that instance is on the 
current machine, I need to set a dependency on that service so that my service 
starts afterwards.

I can foresee a hard time getting this into my installer.  I need to determine 
if the sql server is on the current machine from the server/instance provided 
by the user, then determine the method of identifying the service in order to 
set a dependency on it, then dynamically adding this to my service during the 
install.

So, is there a relatively easy way to do this?  Or are there any guides out 
here for this situation?  Looking for any help on this I can get!  TIA.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to