Classification: Public
Thanks Carter!

Steve

-----Original Message-----
From: Carter Young [mailto:ecyo...@grandecom.net]
Sent: May-06-14 2:57 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] what exactly is this: WixMsiNetAssemblySupport?

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 = &quot;#1&quot;
     </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:
&#149; 3 signs your SCM is hindering your productivity &#149; Requirements for 
releasing software faster &#149; Expert tips and advice for migrating your SCM 
now http://p.sf.net/sfu/perforce _______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

 
This message has been marked as Public by Steven Ogilvie on May-06-14 3:09:28 
PM.

The above classification labels were added to the message by TITUS Message 
Classification. 
For more information visit www.titus.com.

------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to