Wixwiki<http://www.wixwiki.com/index.php?title=NetFxExtension> does not mention 
NETFRAMEWORK35 and I have not tried it with v2.
Checking NETFRAMEWORK20 works for me in v2.  Here is what needs to be done:


-          Add somewhere in your wix script:

  <PropertyRef Id="NETFRAMEWORK20"/>
  <Condition Message="The .NET Framework 2.0 must be installed">
    Installed OR NETFRAMEWORK20
  </Condition>


-          If you are using batch file for building an msi:

Candle.exe ... -ext 
"Microsoft.Tools.WindowsInstallerXml.Extensions.NetFxCompiler, 
WixNetFxExtension" ...
Light.exe ...  -ext 
"Microsoft.Tools.WindowsInstallerXml.Extensions.NetFxCompiler, 
WixNetFxExtension" <path>\netfx.wixlib ...


-          If you are using MSBuild:

  <!-- Candle.exe command-line options -->
  <ItemGroup>
    <CompileExtension Include="WixNetFxExtension">
      
<Class>Microsoft.Tools.WindowsInstallerXml.Extensions.NetFxCompiler</Class>
    </CompileExtension>
  </ItemGroup>

  <!-- Light.exe command-line options -->
  <ItemGroup>
    <LinkExtension Include="WixNetFxExtension">
      
<Class>Microsoft.Tools.WindowsInstallerXml.Extensions.NetFxCompiler</Class>
    </LinkExtension>
    <WixLibrary Include="$(ToolPath)netfx.wixlib"></WixLibrary>
  </ItemGroup>

Hope this helps,
Alex



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tobias Holm
Sent: Monday, December 17, 2007 9:51 AM
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