Conditional Installation of a Web Service Feature - 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!

crazypit
Posts: 9
Joined: Thu Jul 10, 2008 10:41 am

Conditional Installation of a Web Service Feature

Hello all,

I have a feature in my project which is a Web Service module for my application. It is present in the custom installation dialog and if chosen i need the relevant files and folder to be installed. Furthermore, if at the target computer an IIS is installed, i need to create a Web Site to host it.

How can i set a condition on the creation of the Web Site, that says "If the target computer has IIS then create Web Site"? Is there a Registry Search for that? Notice, than if IIS is not installed, i dont want to stop the installation of the relevant folder and files of the project. Just not to create the web site.

Thanks in advance,

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

Re: Conditional Installation of a Web Service Feature

Hi,
How can i set a condition on the creation of the Web Site, that says "If the target computer has IIS then create Web Site"?
In order to detect if IIS is installed you can use two searches. These searches should try to find the "inetinfo.exe" and "w3wp.exe" files on the target machine.

If at least one of these searches is successful, then IIS is installed and your web site should be created. In order to condition the creation of the web site you can use the "Install Condition" field in the Web Site tab of the "IIS" page. Note that this condition affects only the creation of the web site, it does not affect the associated folder.

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

Return to “Common Problems”