apajovejohn
Posts: 19
Joined: Tue Dec 18, 2018 6:11 pm

Conditional IIS Properties

Mon May 15, 2023 11:57 pm

Hello,
Is it possible to set the properties of an IIS website conditionally depending on the value of a property?

Specifically, what I want to do is set some HTTP headers IF the user elects to install on port 443 (FRONTENDPORT=443, but not set them if it is installed on any other port.

Thanks

John

Catalin
Posts: 6544
Joined: Wed Jun 13, 2018 7:49 am

Re: Conditional IIS Properties

Wed May 17, 2023 12:07 pm

Hello John,

Do you mean the "Custom Properties" you can add for your IIS Website?

If so, it looks like these can not be conditionally installed.

If this is what you meant, please let me know so I can create an improvement request for our dev team so we can investigate if it's possible to add this in a future version of Advanced Installer.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

apajovejohn
Posts: 19
Joined: Tue Dec 18, 2018 6:11 pm

Re: Conditional IIS Properties

Thu May 18, 2023 1:46 pm

Hi Caitlin,
This was indeed what I meant. It's a seriously niche requirement which I'm not sure many other folks would ever need.

I've worked around it with a PowerShell custom action so I think you can ignore this one.

Thanks for following up

John

Catalin
Posts: 6544
Joined: Wed Jun 13, 2018 7:49 am

Re: Conditional IIS Properties

Thu May 18, 2023 3:26 pm

Hello John,

Thank you very much for your followup on this!

Glad you managed to get this working.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”