When is my prerequisite installed during Install Execution Stage - Advanced Installer Community
janisito
Posts: 86
Joined: Thu Apr 09, 2015 6:28 am

When is my prerequisite installed during Install Execution Stage

Hi,

I have a prerequisite that is "Feature-based". The prerequisite is installing SQL Server Express. At what exact stage of "Install Execution Stage" will this prerequisite be installed? I have some other stuff that is dependent on this prereq to have installed before executing.

Regards
Jan
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: When is my prerequisite installed during Install Execution Stage

Hello Jan,

The feature-based prerequisites are installed exactly when you press the "Install" button from the "VerifyReadyDlg", right before entering the "Install Execution Stage".

To check this first hand, you can simply add a message box custom action right at the begin of the "Install Execution Stage" (before "Searches" action group).

A feature based prerequisite is not installed during the "Install Execution Stage" because it is impossible for two Windows Installer installation processes to be up and running at the same time (to be more precise, their install execution stage group of actions).

Also, this is the reason why, when the main setup is run silently (with not UI), the feature-based prerequisites are treated as post-install prerequisites (installed after the main setup). This is done because there are no dialogs, which means the action that launches the prerequisite does not exist (due to the fact that no dialogs exist during a silent install).

Hope this helps.

Kind regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
janisito
Posts: 86
Joined: Thu Apr 09, 2015 6:28 am

Re: When is my prerequisite installed during Install Execution Stage

Hi Catalin,

Thank you for the awesome explanation! I totally understand.

Regards
Jan
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: When is my prerequisite installed during Install Execution Stage

You are always welcome, Jan.

I am glad I could help.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”