IIS identity - Advanced Installer Community
Fulgan
Posts: 101
Joined: Mon Feb 27, 2012 10:42 am

IIS identity

Hello,

I would like to specify the identity used by an IIS web application. Typically, i do that by going through the IIS manager, selecting the relevant web app, selecting "basic settings" on the right pane, clicking on the "Connect as..." button and entering the proper credentials.

I can't find a way to do that through advanced installer. The only two options I see are in asp.net (which is of no use to me: this isn't an ASP.net app) and in the web app itself (which doesn't do the same thing and actually doesn't work properly since you're limited to a property-based user name with no way to specify the domain).

Edit: based on the answer to another of my question, I found the location in the IIS section that let me specify the identity used. however, I'm still blocked by the fact that i can only pick a single property for the user and that there is no way to select a domain\user combination.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: IIS identity

Hello,

I'm afraid we don't have predefined support for this. However, as a workaround you can create your own custom action. For example you can add in "Custom Actions" page a "Launch File" custom action with sequence, scheduled as deferred just before the "Install Execution Stage -> Finish Execution" actions group, like this:
  • File to Launch field: [SystemFolder]inetsrv\appcmd.exe
    Command Line field: set vdir /vdir.name:"Default Web Site/MyAppName/" /userName:"mydomain\myuser" /password:"myp@$$word"
Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Fulgan
Posts: 101
Joined: Mon Feb 27, 2012 10:42 am

Re: IIS identity

Thanks. I will test and let you know.

For the record, I think this would be a worthwhile improvement for a future AI version.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: IIS identity

Hello,

First of all I apologize for my delayed reply. We are quite busy at the moment.

I've added this improvement on our TODO list and maybe it will be available in a future version of Advanced Installer. Thank you for your suggestion.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: IIS identity

Hello,

This was fixed in version 14.1 of Advanced Installer released on June 30th, 2017.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”