Hello,
If you want your launch conditions to be evaluated before searching for prerequisites, then from
"Prerequisites" page you should enable the "Check predefined launch conditions before searching for prerequisites" option.
Also, in order to apply our active Internet connection predefined launch condition only when a particular .NET framework (i.e. 4.0) is not installed you can proceed like this:
- Go to "Launch Conditions" -> "System" tab and enable our "Run only if an active Internet connection is found" predefined launch condition.
- Go to "Custom Actions" page and add a "Set installer property" (i.e.
Set_Internet_Connection) custom action with sequence, scheduled after "Install Execution Stage -> Searches" action group, like this:
- Property: AI_INTERNET_CONNECTION
Formatted: AI_INET_CON_SUCCESS
Condition: (MsiNetAssemblySupport << "4.0")
- Select the "Set_Internet_Connection" custom action and, while pressing the Shift key, drag it under "Wizard Dialogs Stage -> Searches" action group. From "Custom Action Properties" right pane enable the "Execute only once if present in both sequence tables" execution option.
- Go to "Table Editor" page, select "InstallExecuteSequence" table and schedule the "Set_Internet_Connection" custom action between "AI_Internet" and "LaunchConditions" actions, using an adequate sequence number.
- Select "InstallUISequence" table and schedule the "Set_Internet_Connection" custom action between "AI_Internet" and "LaunchConditions" actions, using an adequate sequence number.
- Build and run your project.
Also, please keep in mind that our "Table Editor" feature is available only in an Enterprise or higher project type.
Let us know if this helped.
All the best,
Daniel
FOLLOW US
Get the latest news in Application Packaging