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!

mgorga
Posts: 45
Joined: Fri Jun 03, 2011 1:00 pm

Confirm installation of Windows Feature Bundle

Dears,
on pre-requisits page I am installing a Windows Feature Bundle, specifically IIS and Framework NET 3.5. Is it possible to ask to user if he wants to install them? Our policy installation doesn't allow to install any software without user's permission/confirmation.

Best regards,
Mario

PD: this is a very nice feature ;)
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Confirm installation of Windows Feature Bundle

Hello Mario,

In order to achieve that you can add a check box control on a dialog and based on its state you can condition the installation on the related windows feature.

So, when you add the checkbox control automatically it is assigned a public property (by default it is CHECKBOX_1_PROP).
Then you can go in the “Prerequisites” page, select your Windows Feature bundle and add in the Condition: field the property assigned to the edit box control.(e.g. CHECKBOX_1_PROP ).

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mgorga
Posts: 45
Joined: Fri Jun 03, 2011 1:00 pm

Re: Confirm installation of Windows Feature Bundle

Thank you,
I will use this approach. I have another question, is it possible to store in a property if IIS is installed, and the same for NET Framework 3.5? Then I will use these properties for show or disable the checkbox asking for their installation. Basically, It has no sense to ask for IIS installation in the upgrading process of our software because it was installed on the first installation.

Best regards,
Mario
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Confirm installation of Windows Feature Bundle

Hi Mario,

In order to achieve that you can search through the registry in order to see if Internet Information Service(IIS) and .NET Framework 3.5 are installed on the target computer.

You can go in the Search page and use the New Extended Search >> Registry key exists toolbar button to define a search for Internet Information Service(IIS)(name it properly e.g. RESULT_IIS) and another one for .NET Framework 3.5 (e.g. RESULT_NET) . So, the search will be successful if the specified registry key exists. That means the public property that is associated with the search operation will be 1 if the registry key entrance exist.

That means that in the “Dialogs” page you will also have two check boxes one for installing Internet Information Service(IIS) Windows Feature bundle and another one for .NET Framework 3.5 Windows Feature bundle.

Please associate them an appropriate property name (e.g. INSTALL_IIS and INSTALL_NET).
Now, we want to give the user possibility to choose to install the related “Windows Features” only if they are not installed on the target computer.

In order to achieve that you add two control conditions to the related check boxes.
You should have something like that:
For the IIS check box:
-First control condition:
  • Condition: field RESULT_IIS
    Action: Hide
-Second control condition:
  • Condition: field NOT RESULT_IIS
    Action: Show
So, the check box will not be visible if the Internet Information Service(IIS) is already installed, otherwise it will be visible and the user can choose to install the IIS.

Use the same approach for the .NET check box.

Please note that you will have to create two Windows Feature bundle, one for the IIS and one for the .NET Framework.
Also use the public properties associated with the related check boxes in the Condition field of each “Windows feature”.

Please let us know if you need any help.

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

Return to “Building Installers”