How to require IIS only for one or more features/components - Advanced Installer Community
Fulgan
Posts: 101
Joined: Mon Feb 27, 2012 10:42 am

How to require IIS only for one or more features/components

Hello,

I can't figure out how I can have the installer require the presence of IIS only if (in my case) any one of a couple of features are to be installed (or, optionally, if at least one component among a list).

I have tried to use the "Windows server roles" option in prerequisites, listing the necessary IIS functions and tying that condition to the "condition" property but, when I do that on a machine that does not have IIS installed, the installer aborts complaining about that fact even if none of the features are selected.

My condition looks like this:

( &SOAP = 3 ) OR ( &WebInterface = 3 ) OR ( &Web = 3 )

(Web is the "root" feature for both "SOAP" and "WebInterface")

If I unselect "Web" from the feature list during install, I have the following error message:

"This version of IIS is not supported or IIS is not fully installed! You need Internet Information Services 5.0 or above" (which is actually incorrect: it won't work on anything under IIS 7)

What am I doing wrong ?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: How to require IIS only for one or more features/compone

Hello,

I'm not sure why you encountered this behavior.

Can you please try to go in the Custom actions page and delete the Update features install state custom action (if it is pressent) and add it without sequence in order to add it as a published event on the Next control from the same dialog where the user can choose what features to install.

If you still have encounter problems, 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
Fulgan
Posts: 101
Joined: Mon Feb 27, 2012 10:42 am

Re: How to require IIS only for one or more features/compone

Hello,

It was my mistake. Actually, I need to setup the condition on the IIS isntalled elements as well (web application, web site and folders).

I have a strange new issue, though: I have two separate features (web interface and SOAP backend) that can optionally be installed on the same machine.

If I install one or the other or both at the same time, everything works fine. But if I install one feature, then run "add/remove feature" from the installer and add the other one, the new feature folder is correctly created but the web application (and associated parameters) are not. The folder is left "as is".

Return to “Common Problems”