We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

tsellman
Posts: 24
Joined: Fri Sep 14, 2012 2:37 pm

mixed launch condition

I want to construct a condition that checks if a particular .Net framework is not
installed, then only proceed if there is a network connection. I don't want the network connection
check performed otherwise.

I got partially there in that the custom launch condition could check the value of MsiNetAssemblySupport,
but I did not see any visibility to AI_INTERNET_CONNECTION when selecting the 'Property' insert operand button.

Am I missing something elementary?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: mixed launch condition

Hello,

In order to obtain what you want you can use our "Run only if an active Internet connection is found" predefined launch condition, from "Launch Conditions" -> "System" tab.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tsellman
Posts: 24
Joined: Fri Sep 14, 2012 2:37 pm

Re: mixed launch condition

Thanks for your answer, but I was aware of that option. My issue is that I was trying to define a
launch condition that would only enforce the network connection requirement if a particular
.NET framework was not installed (the product does not need a network connection to install
otherwise). In an effort to define a custom condition, the Advanced Installer tool was not showing
the AI_INTERNET_CONNECTION property in any tree-view expansion of available properties.

I ended up creating my own user property that simply references the AI_INTERNET_CONNECTION
property, which then exposes it in the property tree-view.

However, another issue is that once I defined my custom rule, the execution of that appears to be
deferred until after any prerequisite is satisfied. So ultimately, the installer attempts to download the .NET
framework with no network connection, something I was trying to avoid.

Any suggestions?
Thank you.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: mixed launch condition

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
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
atherton01
Posts: 3
Joined: Tue Jan 08, 2013 11:53 pm

Re: mixed launch condition

For anyone who is new (like me) I didn't realize that you can turn off the "Run only if an active Internet connection is found" requirement for particular builds...

Just select the build to which you want the Launch Conditions to apply, and select them appropriately...

Return to “Building Installers”