My condition statements checking for valid .net framework 2.0 and 3.5 installs 
appear to not be getting evaluated.   Looking at the log files for an msi with 
the following property value assignment and condition checks I see the expected 
values, e.g.
Property(S): NFX20VERSION = 2.1.21022
Property(S): NFX20VERSIONSP = #1
Property(S): NFX35VERSION = 3.5.21022.08
Property(S): NFX35VERSIONSP = #0

But the test case I enabled to verify prerequisites were being looked at, 
NFX35VERSIONSP <= "#1", which currently should always equate to false is not 
requiring the condition message to be logged and setup rolled back.

    <Property Id="NFX20VERSION">
        <RegistrySearch Id="Nfx20Version" Type="raw" Root="HKLM"
            Key="Software\Microsoft\NET Framework Setup\NDP\v2.0.50727" 
Name="Version" />
    </Property>

    <Property Id="NFX20VERSIONSP">
        <RegistrySearch Id="Nfx20VersionSp" Type="raw" Root="HKLM"
            Key="Software\Microsoft\NET Framework Setup\NDP\v2.0.50727" 
Name="SP" />
    </Property>

    <Property Id="NFX35VERSION">
        <RegistrySearch Id="Nfx35Version" Type="raw" Root="HKLM"
            Key="Software\Microsoft\NET Framework Setup\NDP\v3.5" 
Name="Version" />
    </Property>

    <Property Id="NFX35VERSIONSP">
        <RegistrySearch Id="Nfx35VersionSp" Type="raw" Root="HKLM"
            Key="Software\Microsoft\NET Framework Setup\NDP\v3.5" Name="SP" />
    </Property>

    <Condition Message="Setup requires .NET Framework 2.0 to be installed.">
        NFX20VERSION
    </Condition>

    <Condition Message="Setup requires .NET Framework 2.0 Service Pack 1 to be 
installed.">
        NFX20VERSIONSP &lt;= "#1"
    </Condition>

    <Condition Message="Setup requires .NET Framework 3.5 to be installed.">
        NFX35VERSION
    </Condition>

    <Condition Message="Setup requires .NET Framework 3.5 Service Pack 1 to be 
installed.">
        NFX35VERSIONSP &lt;= "#1"
    </Condition>

/ro
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to