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
FOLLOW US
Get the latest news in Application Packaging