The WiX v3 NetFxExtension part which sets these properties is a 'pure'
extension, it only generates entries in the MSI file rather than requiring
any custom actions to do its job. You can find the definition of these
properties in src\ext\NetFxExtension\wixlib\NetFxExtension.wxs, where the
property is defined in terms of a registry search:

 

<Property Id="NETFRAMEWORK35" Secure="yes">

    <RegistrySearch Id="NetFramework35" 

                    Root="HKLM" 

                    Key="SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5"

                    Name="Install"

                    Type="raw" />

</Property>

 

I don't think this syntax has changed since v2.0 so this should drop
straight into your project.

 

-- 

Mike Dimmick

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tobias Holm
Sent: 17 December 2007 17:51
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Detecting .net framework 3.5 with wix v2

 

Hi all,

 

What is the best way to detect if .net framework 3.5 is installed with wix
v2?

I have seen that in wix v3 it is possible to use the netfxextensions. 

Like:

<PropertyRef Id="NETFRAMEWORK35"/>

      

<Condition Message="The .NET Framework 3.5 must be installed">

 Installed OR NETFRAMEWORK35

</Condition>

 

I would like to achieve something similar to this in my v2 installer. 

Unfortunately I cannot migrate to v3 just yet.

 

//Tobias

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to