IIS Checking - Advanced Installer Community

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!

jm2008
Posts: 62
Joined: Tue Jul 08, 2008 10:24 am

IIS Checking

Hi,

How can I check if IIS is installed on the machine or not? SInce I install web application, and the whole installatiion fails if IIS is not installed. I need to complete the installation, even if IIS is not installed on the machine.

Thanks,
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: IIS Checking

Hi,
How can I check if IIS is installed on the machine or not?
This can be done by using the IIS predefined launch condition in the Launch Conditions page. Please note that this launch condition is enabled automatically when configuring a web site or a virtual directory in the "IIS" page.
I need to complete the installation, even if IIS is not installed on the machine.
I'm afraid that this is not supported by Advanced Installer. If the package needs to install IIS components then it requires IIS installed on the target machine.
A solution would be to not install the IIS components if IIS is not installed on the target machine. This can be done by using the "Condition" field in the Virtual Directory or Web Site page. This field can be set to:

Code: Select all

AI_IISSEARCH OR AI_IISSEARCH_EX
Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
zgarber
Posts: 4
Joined: Mon Nov 24, 2008 8:47 pm

Re: IIS Checking

My installer is still complaining for IIS not installed even if I disabled virtual directory by setting Launch Condition to 0. Removing Virtual directory completely from DefaultWebSite does help. I want to make IIS configuration conditional depending on whether IIS is installed or not. Your proposed launch condition does not make any impact. I verified that it won't install virtual directory if IIS present on the system, but if it does not all installation fails.

Any idea what might help?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: IIS Checking

Hi,
My installer is still complaining for IIS not installed even if I disabled virtual directory by setting Launch Condition to 0.
Please note that the IIS predefined launch condition cannot be set to 0. Can you please give more details about what you are referring to?
I want to make IIS configuration conditional depending on whether IIS is installed or not.
I'm afraid that this is not supported by Advanced Installer. However, you can try using this approach:
- in the Search page create searches for the "inetinfo.exe" and "w3wp.exe" files to determine if IIS is installed
- use the properties of these searches to condition the installation of your IIS elements (websites and virtual directories)

This way the IIS elements will be installed only if the searches are successful.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
zgarber
Posts: 4
Joined: Mon Nov 24, 2008 8:47 pm

Re: IIS Checking

I've got a dialog box "There was an error during the IIS configuration process. Your original IIS configuration will be restored"
The only option "OK" results in rollback. IIS is not installed on this Win XP SP3 machine. What I really want to do is to skip IIS configuration in this case. If IIS configuration can be added as a feature - it would be something that I'm looking for.

Thanks
zgarber
Posts: 4
Joined: Mon Nov 24, 2008 8:47 pm

Re: IIS Checking

Update: The problem only exist if I also try to install Isapi filter. I understand this can't be conditional. Or can it?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: IIS Checking

Hi,

A solution would be to condition the IIS actions with the properties of the searches which check is IIS is installed. Please note that there is a post about this here:
http://www.advancedinstaller.com/forums ... f=2&t=8426

For example, if your searches are named INETINFO and W3WP, the entries in the AIP would look like this:

Code: Select all

<ROW Action="AI_IIsInstall" Condition="(VersionNT >= 500) AND (NOT Installed) AND (INETINFO OR W3WP)" Sequence="6509"/>
<ROW Action="AI_IIsUninstall" Condition="(VersionNT >= 500) AND (REMOVE="ALL") AND (INETINFO OR W3WP)" Sequence="1699"/>
This way the actions which configure the IIS elements (including ISAPI filters) will run only if at least one of the IIS searches is successful.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
zgarber
Posts: 4
Joined: Mon Nov 24, 2008 8:47 pm

Re: IIS Checking

If I understand you correctly, you suggest condition IIS by editing .aip file in the text editor. Will this be reflected in any way in UI?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: IIS Checking

Hi,

No, the UI will not be affected. Currently the IIS actions cannot be conditioned directly from Advanced Installer. However, this feature is on our TODO list and it will be available in a future version.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”