I actually thought about your suggestion. The problem is that we will have to search the registry key of each version of .NET and I'm trying to find a general solution that will work for all versions of .NET 2.0 and higher, so that we will not have to change the setup code when .NET version 4.0 will release.
Thanks, -Ravit -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Neil Sleightholm Sent: Sunday, June 08, 2008 6:08 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] How to detect if .NET framework 2.0 or higher is installed I think that key should be present if 3.5 is installed as the 3.5 install installs 2.0. If you are using WiX v3 you can also do something like this: <PropertyRef Id="NETFRAMEWORK20"/> <Condition Message=".NET Framework 2.0 is not present on this computer."> Installed OR NETFRAMEWORK35 </Condition> Neil -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ravit Shapira Sent: 08 June 2008 10:01 To: wix-users@lists.sourceforge.net Subject: [WiX-users] How to detect if .NET framework 2.0 or higher is installed Hi, I want to be able to detect if .NET framework 2.0 or higher is installed. I've found how I can look for the .NET framework 2.0 in wix: <Property Id="NETFRAMEWORK20"> <RegistrySearch Id="NetFramework20" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v2.0.50727" Name="Install" Type="raw" /> </Property> <Condition>Installed or NETFRAMEWORK20</Condition> .... The problem with my current implementation is that it looks for the registry key of v2.0, while the setup that I create should run on .NET 2.0 or higher (3.5 for example). Thanks, Ravit ------------------------------------------------------------------------ - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users