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!

sjbrother
Posts: 1
Joined: Sun Oct 11, 2015 3:29 pm

Spawning another MSI within my MSI professional version?

Hi,

How can I put in another MSI within my MSI file during installation in the professional version? The problem I have is that I'm running an old version of Crystal Reports and the weblink is dead. It's originally from Visual Studio 2008. I can't use the new version of Crystal reports due to the complexity of the legacy code I am using, but I need to install Crystal Report for VS2008. I have the installation package, but instead of having the user installing FIRST crystal reports and then my application, isn't there a way I can add it into AIP so all they have to do is just do one setup, and be done with it?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Spawning another MSI within my MSI professional version?

Hello and welcome to Advanced Installer forums,

Your scenario can be easily implemented using Advanced Installer.

In order to achieve this, you can add the Crystal Report for VS2008 prerequisite in the Prerequisites page as a Feature-Based prerequisite. Use the [ Package Prerequisite ] toolbar button or “New Package Prerequisite” context menu item. You will be prompted to pick the prerequisite setup files.

Please keep in mind that this type of prerequisite is created with default settings, so you need to configure it manually (e.g. define proper install conditions for the prerequisite in the prerequisite install conditions tab.

A prerequisite will be installed based its install conditions defined in the Prerequisite Install Conditions Tab. The Install Conditions section allows you to condition the prerequisite based on custom searches. You can create multiple searches for the same prerequisite. You can evaluate an install condition using the [ Evaluate... ] button.

Also, be aware by the two options below the “Install Conditions” section:
  • Install only if at least one condition is false - If this option is selected, at least one search must fail in order to install the prerequisite.
  • Install only if all conditions are false - If this option is selected, all searches must fail in order to install the prerequisite.
So, the prerequisite will be installed according to the enabled option which refers to the install condition that you have defined before.

Through the Install Command Lines section from the Prerequisite Setup Tab you can add optional command lines for launching the prerequisite under different UI environments.

Each command is used by your prerequisite based on the UI level of the main package, i.e. if the main package runs with full UI the command from the "Full UI" field will be used to call the prerequisite, if the main package runs with basic UI them the command from the "Basic UI" field will be used to call the prerequisite, the same for the rest.

This way you can have different command lines for each UI level:
  • Full UI - command line parameters used for an installation with full user interface
    Basic UI - command line parameters used for an installation which shows only a progress bar
    Silent (no UI) - command line parameters for an installation with no user interface
Note the command that you need to pass is the same as you would use to install the prerequisite silent from the command line, i.e. for .MSI packages the command is /qn. Since your license is of Professional type, you should only add command line switch in the FULL UI field.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”