h.k.foysol
Posts: 17
Joined: Thu Oct 13, 2016 10:34 am
Contact: Skype

How to keep prerequisites item unselected by default

I have several prerequisites for my installer project in pre-install. Some of them are mandatory and some of them are optional for my installer. For example .NET Framework is a mandatory prerequisite but Visual C++ Redistributable is not.

For .NET Framework I have "Continue with main installation even if the prerequisite is not installed" checkbox unchecked.
For Visual C++ Redistributable I have "Continue with main installation even if the prerequisite is not installed" checkbox checked.

When none of the above prerequisites are installed both are shown checked in the prerequisites selection page. My question is, how can I keep the optional prerequisite item unchecked in the prerequisites selection page? In my case I want to keep VC++ unchecked by default. If user wants they can choose to install it by selecting the item from list.
Humayun Kabir Foysol
Team Lead
Enosis Solutions
http://www.enosisbd.com
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: How to keep prerequisites item unselected by default

Hello,

Unfortunately this behaviour is not possible for "Pre-install" Prerequisites. However for "Feature based" prerequisites this can be done by the following method: you should go to "Organisation" page, select Visual C++ feature and choose "Not Install" option from "Installation behaviour". In this way, the Visual C++ prerequisite will be unchecked by default in "PrerequisitesDlg".

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”