Detecting availability of Windows features - Advanced Installer Community
fali
Posts: 22
Joined: Thu Mar 14, 2013 9:28 pm

Detecting availability of Windows features

Hello,

I have an installer that facilitates the installation of IIS if needed to run a web application that comes packaged with my desktop application. I want to know is there a way to detect if certain features of IIS are available on Windows through the installer to prevent errors? I have received the following error from a customer who was trying to install the web app to their Windows 8 machine:
The following required Windows features are not available on your system: IIS-IISCertificateMappingAuthentication, IIS-ClientCertificateMappingAuthentication, IIS-ODBCLogging, IIS-WindowsAuthentication, IIS-DigestAuthentication
I know that my application needs at least IIS 7 to work, but IIS 7 is in at least Windows 7, so Windows 8 would not get rid of it, would it? Thank you.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Detecting availability of Windows features

Hi,

This may happens if you are trying to enable the IIS on a Windows 8 Standard edition, as not all the windows features are available in all windows editions (Standard, Professional, Enterprise etc).
In this case, you can select the Ignore error and continue installation option as a Error policy from the Windows features bundle properties. This option is available starting with the 11.5 version of Advanced Installer.

Please let me know if you have other questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
fali
Posts: 22
Joined: Thu Mar 14, 2013 9:28 pm

Re: Detecting availability of Windows features

Hi Dan,

I went ahead and disabled those specific requested features from the IIS install portion of my installer, and now it installs fine. However, I still had to enable ASP.NET 4.5 through the Windows Command Line using the following command:
dism /online /enable-feature /featurename:WCF-HTTP-Activation45 /all
This installed ASP.NET 4.5 for the target Windows 8 machine. I believe Windows 8 ships with .NET 4.5 by default, but does not have ASP.NET enabled. After I had done this the web portion of my application is working fine.

Do you know if it is possible to include that command baked into the installer? Or would I have to write a script and run it after installation?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Detecting availability of Windows features

Hello,

Please note that there is no need to use a custom action.
You can go in the Prerequisites page and add a Windows Feature Bundle to your installation package.
Select the Target Operating Systems (e.g. Windows 8 and Windows 8.1) and enable the HTTP Activation option from the .Net Framework 4.5 Advanced Services -> WCF Services.
Please note that this option will automatically enable all the additional dependencies.

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
fali
Posts: 22
Joined: Thu Mar 14, 2013 9:28 pm

Re: Detecting availability of Windows features

Hi Dan,

This seems like the way to go. However, after putting in the new Feature Bundle (that only targets Windows 8 and above) for HTTP Activation under .NET 4.5 WCF Services, I am seeing an installer error with the following message on the target computer:
This version of IIS is not supported or IIS is not fully installed ! You need Internet Information Services 5.0 or above.
I believe this is happening because the HTTP Activation is taking place before the the install of IIS, is there a way to make it happen in sequence?

Addl. information:
-The IIS feature install is listed above the HTTP activation feature.
-Both features are installed on the same condition, that is, when the user chooses to install the web app (through a check box on my installer).

Thank you for your continued support.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Detecting availability of Windows features

Hi,

This may happens if the Internet Information Service launch condition is enabled in your installation package. In order to remove the related launch condition, you can go in the Software tab from the Launch Conditions page.

Please let me know if you have other questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
fali
Posts: 22
Joined: Thu Mar 14, 2013 9:28 pm

Re: Detecting availability of Windows features

Dan,

The launch condition is not enabled for IIS.

What else could be causing this issue?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Detecting availability of Windows features

Hi,

In order to have a better view about this, can you please send us the .AIP (project file) to support at advancedinstaller dot com so we can investigate it? If it contains confidential information you can send us a small test project which reproduce this behavior.

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

Return to “Building Installers”