Show prerequisite dialogs, hide the main installer? - Advanced Installer Community
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Show prerequisite dialogs, hide the main installer?

Hello,

Is there a way to show only the prerequisite dialogs and make the main installer silent?

:?:
K
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Show prerequisite dialogs, hide the main installer?

Hello,

In order to achieve that, you can proceed as it follows:

- Go to "Prerequisites" page.

- Select your prerequisite --> "Setup Files" tab and in the "Silent (no UI)" field, pass the "/qf" parameter.

This way, when running the setup silently, the prerequisite's dialogs will be spawned.

E.g.: Let's say you have a package with a pre-install prerequisite. If in the "Silent (no UI)" field you will pass the "/qf" parameter and then you will deploy your setup like this:

Code: Select all

"path_to_your_exe" /qn
Only the prerequisite's dialogs will be spawned and then the main setup will be installed silently.

Hope this helps.

Kind regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Show prerequisite dialogs, hide the main installer?

Thanks for the information. I have another question. In the prerequisite list is there a way to keep certain contents unchecked even if it is not installed?
K
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Show prerequisite dialogs, hide the main installer?

Hello,
In the prerequisite list is there a way to keep certain contents unchecked even if it is not installed?
Yes, that is possible, but for "Feature-Based" and "Post-Install" prerequisites only. For each "Feature-Based" prerequisite added to your package, a new feature will be created in "Organization" page. From the "Organization" page, you can manipulate the state of a prerequisite from under the "Installation Behavior" section.

E.g.: Let's say we have two prerequisite (app1 and app2) and we add them as "Feature-Based" prerequisites. In "Organization" page, two new features will be created (app1 and app2). If, for example, we set the "Installation Behavior" for the app1 prerequisite from "Installed" to "Not installed", upon running the setup, the app1 prerequisite will be unchecked by default.

Hope this helps.

Kind regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Show prerequisite dialogs, hide the main installer?

You are always welcome.

Glad I could help.

Kind regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Show prerequisite dialogs, hide the main installer?

Hello,

I changed the prerequisites to Feature-Based. It worked as expected. I have another issue. A prerequisite that is already installed is showing as "Installed" in the Found column and "Skip" in the Action column, but this is in the checked state. How to fix this?

:?:
K
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Show prerequisite dialogs, hide the main installer?

Hello,

First of all, please let me try to explain real quick the 3 states a prerequisite can have (in the "PrerequisitesDlg" dialog):

- Installed => checkbox is checked.

- Not installed => checkbox is not checked.

- Disabled => the prerequisite does not appear.

By
How to fix this?
do you mean that you want the prerequisite to not be present or you want its checkbox to not be checked?

Now, one more important thing is made up of the install conditions that the prerequisite has ("Prerequisites" page --> "Install Conditions" tab). This condition is evaluated twice:

- first time, the condition must be false in order for the prerequisite to be installed. If the condition is true, it means that the prerequisite is already installed, meaning that there is no need to try to install it again

- second time, the condition must be true, meaning that the prerequisite was correctly installed.

Now, in order to achieve what you want, here is how you can proceed: You can create a "Search" based on the prerequisite's install condition(s). Then, since the prerequisite is a feature based, you can condition the installation of the feature that contains it ("Organization" page) based on the search that you have earlier created. For instance, the "Installation Behavior" of the feature that contains the prerequisite can be something as it follows:

Installed --> Not installed if: THE_NAME_OF_THE_SEARCH

or

Installed --> Disabled if: THE_NAME_OF_THE_SEARCH

depending on whether you want to completely hide the prerequisite or you simply want its state to be unchecked.

Hope this helps.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Show prerequisite dialogs, hide the main installer?

You are always welcome.

Glad I could help.

Kind regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”