Conditional Website Install? - 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!

jblaeske
Posts: 2
Joined: Tue Apr 02, 2013 5:37 pm

Conditional Website Install?

I would like to make my Website installation conditional as part of an installation feature. Although I can organize the website's files under 'Features and Components' I cannot seem to actually prevent Advanced Installer from attempting to create a web site if the user selects the 'feature will be unavailable' option under the custom install type. Is there a way to link the custom feature to the website installer?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Conditional Website Install?

Hi and welcome to Advanced Installer forums.

Thank you for your interest in Advanced Installer.

In order to achieve this you can follow the steps below:
- go in the IIS page and select your web site
- in the "Web Site" tab use the [...] button from the right of the "Install Condition" text field
- in the newly appeared dialog double-click on the "Feature will be installed local. The feature is not reinstalled" predefined condition and choose the feature related to your web site from the dialog that appears, then click [OK]
- build and run the project

Now, the web site will not be installed if the user selects the "Feature will not be available" option for the feature you chose above.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jblaeske
Posts: 2
Joined: Tue Apr 02, 2013 5:37 pm

Re: Conditional Website Install?

Thanks for the reply, and sorry for the newbie question. I believe I have it figured out now :oops:
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Conditional Website Install?

You're welcome. Glad to help.

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

Return to “Common Problems”