This Snippet Searches for some required App, as shown by After
AppSearch. If the App is found, it tests for .NET 3.5 SP1, all in a
running UI. This is best used in a Custom Install Dialog
<CustomAction Id="WixMsiNetAssemblySupport" Error="This application requires
.NET Framework 3.5 Service Pack 1. Please turn on this feature in the
Control Panel or install manually"/>
<InstallExecuteSequence>
<Custom Action="WixMsiNetAssemblySupport" After="AppSearch">NOT
NETFRAMEWORK35_SP_LEVEL</Custom>
<InstallUISequence>
<Custom Action="WixMsiNetAssemblySupport" After="AppSearch">NOT
NETFRAMEWORK35_SP_LEVEL</Custom>
This Snippet returns the SP Level to the ID NETFRAMEWORK35_SP_LEVEL,
ie if the Test returns 0, and the tested level = 1 the Download
message is displayed, and for debugging purposes the SP Level is
displayed. This is best used with an Install Condition, ie Condition
= [Installed OR NETFRAMEWORK35_SP_LEVEL <=1]
<PropertyRef Id="NETFRAMEWORK35_SP_LEVEL"/>
<Condition Message="Requires the Microsoft .NET Framework 3.5 Service
Pack 1. To download the requirement please visit:
http://www.microsoft.com/en-us/download then restart the setup.">
NETFRAMEWORK35_SP_LEVEL = "#1"
</Condition>
In both cases the desired result is achieved in that an end users
machine is tested for .net 3.5
Carter
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
• 3 signs your SCM is hindering your productivity
• Requirements for releasing software faster
• Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users