benhinman
Posts: 37
Joined: Wed Aug 06, 2008 7:50 am

Conditional IIS anonymous access.

Hiya,

I am looking to find out if there is a way to condition anonymous access in IIS dependant on options selected in the user interface/elsewhere.

If this isn't possible in the Advanced Installer UI, but is possible in the XML AIP file, I would still be interested.

Thanks in advance,
Ben
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Conditional IIS anonymous access.

Hello,

This feature is currently not available in Advanced Installer. However, you can create and run a custom action that changes the IIS element's permissions according to the options selected in the user interface. Note that the custom action must be executed after the installation has finished.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
benhinman
Posts: 37
Joined: Wed Aug 06, 2008 7:50 am

Re: Conditional IIS anonymous access.

Thanks for the quick reply.

Just to confirm, I am guessing I need to place this custom action in the InstallFinalize standard action? Also, is there any particular method I need to override in this custom action or can I simply override the install method (.NET custom action).

Thanks in advance,
Ben
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Conditional IIS anonymous access.

Hello,

Your custom action should be placed under InstallExecuteSequence->InstallIIS and set as "Deferred with no impersonation", since it may need administrator privileges to change the IIS access permissions.
Also, is there any particular method I need to override in this custom action or can I simply override the install method (.NET custom action).
You can simply override the Install method.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”