Look at it this way: You wrote your application and tested it against .NET 2.0. Because 3.0 and 3.5 are like "feature packs" for .NET 2.0, they register themselves as .NET 2.0, and your application still installs and works.
If Microsoft bring out .NET 4.0, and it's compatible with .NET 2.0, they'll do the same, and your installer and application will still work. If .NET 4.0 isn't compatible with .NET 2.0, your application won't work, so there's no point in your installer detecting whether or not .NET "4.0" is installed. Your application needs .NET 2.0; this is what your installer should be looking for. At least, that's in the general case. If you're writing development tools or similar, then you might want to know the specific version that's installed. Cheers, Roger. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Sent: Sun 08 June 2008 22:18 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] How to detect if .NET framework 2.0 or higher is installed While that is true for 3.0 and 3.5, that might not necessarily be true for "4.0". For example, if they have 2.0 they do not necessarily have 1.1 or 1.0, as they were both different CLR versions. The reason it is true for 3.0 and 3.5 is because they are library extensions and run on the same CLR version as 2.0. On Sun, Jun 8, 2008 at 1:57 PM, Neil Enns <[EMAIL PROTECTED]> wrote: > Right. A user can't just install .NET 3.5 as the installer will automatically > install .NET 2.0 and 3.0 as well. If your installer does a check for .NET 2.0 > via the reg key (or using the NetFxExtension that comes with WiX), the check > will pass if the user has "only" installed .NET 3.5 since the other two > frameworks will automatically be there as well. > > Neil > > ________________________________ > From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Ryan O'Neill [EMAIL > PROTECTED] > Sent: Sunday, June 08, 2008 11:51 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's what he said. It will detect .Net 2.0 or greater, so 2.0, > 3.0, 3.5 and 4.x will be covered as any future .Net installation is > backwards compatible and has the previous runtimes installed too. > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Ravit Shapira > Sent: 08 June 2008 18:26 > 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 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 > No virus found in this incoming message. > Checked by AVG. > Version: 8.0.100 / Virus Database: 270.0.0/1489 - Release Date: 07/06/2008 > 11:17 > > > ------------------------------------------------------------------------- > 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 1E can save a company with 10,000 PCs over $165,000 and 1,381 tons of CO2 emissions per annum. Calculate what you can save with the award winning NightWatchman from 1E. Discover the benefits of System Center solutions for yourself - attend an exclusive 1E Enterprise Solutions Road Show. Visit our website at http://www.1e.com DISCLAIMER: This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind 1E Ltd to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose ------------------------------------------------------------------------- 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