How to display a custom message for a failed launch condition. - Advanced Installer Community
tscheuerman
Posts: 43
Joined: Thu Feb 11, 2016 11:39 pm

How to display a custom message for a failed launch condition.

Hello,

I have the following "Prerequisites" before the installer can begin to install:

1. If OS is Windows Server 2008 R2 then install IIS 7.5 if it is not currently installed. This I am able to do using the Prerequisites tab!!

2. If OS is Windows Server 2012 R2 AND IIS 8.5 is not currently installed/enabled I need to display a message to the user indicating they must first enable/install IIS 8.5 before the can run this installer.
I am not sure how to do this. Unlike #1 above, IIS 8.5 is a component within Window Server 2012 R2 which cannot be independently installed (i.e. there is not file I can say... install this if it is not installed).

What I would like to do (unless you have a better approach) is to:
- Perform a "Launch Condition" (i.e. ((VersionNT = 603 AND MsiNTProductType <> 1) AND (AI_DETECTED_IIS_VERSION <> "08.5")) ) (I think this say if Windows 2012 R2 and IIS version is <> 8.5)

*** I think I have an issue with this condition in that the condition will return false if the Windows OS is other than 2012 R2. ***

- If the condition is True then display a message informing the user that they must first enable/install IIS 8 before running the Installer.

Is this the correct approach or is there something in Advanced Installer that will do this for me?

Thanks in advance!

Todd
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: How to display a custom message for a failed launch condition.

Hi Todd,

In order to enable a Windows feature (i.e. IIS) you can add a new "Windows Feature Bundle" in the "Prerequisites" page, then select the "Target Operating Systems" and the features that you want to enable. In this case you will not need to warn the user to enable the feature manually.

However, if you want to display a custom message as a launch condition you can achieve this in the "Launch Conditions" page, "Custom" tab as explained in the "Set launch conditions" tutorial.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”