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: [email protected]
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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users