Search code examples
iisadvanced-installer

Change IIS Authentication programmatically


Advanced Installer IIS application setup page has a subpage where I can select IIS Authentication mode before building the setup. I have selected Windows Authentication for now, which is then "hardcoded" into the setup file somehow.

But under certain circumstances only known at install time, a different authentication mode (Anonymous or Basic) should be set up.

How could I do so, during installation, programmatically?


Solution

  • Have you tried this method?

    The only way for now it seems to be by duplicating the website, but changing the authentication method, and setting an installation condition on both websites.