You don't even have to that much. WiX includes a library to do this for you, which you can just include and then reference the property with a <PropertyRef>.
See the How To: Check for .NET Framework Versions in the WiX CHM file for the general approach, but substitute in WixVSExtension instead of WiXNetExtension. The "WixVSExtension" topic lists the available properties. Neil ________________________________ From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Sergey Abakumoff [EMAIL PROTECTED] Sent: Wednesday, September 10, 2008 11:27 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Check whether VS.NET is installed. Found the answer myself: * Define the following properties: <Property Id="VSNET2005"> <RegistrySearch Id="VsNet2005" Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\8.0" Name="InstallDir" Type="raw" /> </Property> <Property Id="VSNET2005SPNUMBER"> <RegistrySearch Id="VsNet2005SPNumber" Root="HKLM" Key="SOFTWARE\Microsoft\DevDiv\VS\Servicing\8.0" Name="SP" Type="raw" /> </Property> <Property Id="VSNET2008"> <RegistrySearch Id="VsNet2008" Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\9.0" Name="InstallDir" Type="raw" /> </Property> Then use these properties to block the installation of the certain components.. -- View this message in context: http://n2.nabble.com/Check-whether-VS.NET-is-installed.-tp1082028p1082052.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users