You don't reference anything from this file in your main authoring(s),
that's why it is not picked by WiX engine. You can verify this by
opening the resulting MSI with Orca and see the LaunchCondition table.
What I do in my project is grouping the prerequisites in a separate wxi
(include) file and then include it with <?include prereq.wxi ?>
instruction into my product.wxs.

Hope this helps.

-- Yan

-----Original Message-----
From: Nick Ball [mailto:nick.b...@grantadesign.com] 
Sent: Friday, August 14, 2009 1:26 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Prerequisites in a separate file

Hi All, 

 

I want to check for the presence of the .Net framework, so I've followed
the instructions in the WiX help and added the code successfully to the
project. It works fine. 

 

However, to simplify my project slightly, I thought I'd take this code
and put it in a file of its own and include that in my project (as
below). But this does not work - it fails to run the check. Of course,
it is no big deal to put it back, but in an attempt to gain a deeper
understanding of WiX, my question is simply: Why? 

 

-N

 

<?xml version="1.0" encoding="UTF-8"?>

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";
xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension";>

  <Fragment>

    <!-- Prerequisites - .Net -->

    <PropertyRef Id="NETFRAMEWORK30"/>

    <Condition Message="This application requires .NET Framework 3.0.
Please install the .NET Framework then run this installer again.">

      <![CDATA[Installed OR NETFRAMEWORK30]]>

    </Condition>

      </Fragment>

</Wix>

------------------------------------------------------------------------
------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day 
trial. Simplify your report design, integration and deployment - and
focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to