Hi,
I'm configuring Advanced Installer to create a new Web Site during installation.
I'd like this web site to use an AppPool with certain properties: .Net 4, "Integrated" mode & LocalSystem Identity.
In case such an AppPool exists, I'd like to use it. In case it does not exist, I'd like to create a new one.
I could not find an integrated way to search for an Application Pool (Is there a way to do so?) so I've created a Custom Action to check for the existence of such an AppPool and if one is found, its name is returned.
My problem is that when configuring my Web Site, on the Application Pool tab the options are: Inherit (not relevant for me), Use Installed A.P. & Use existing A.P.
As you can understand, I'll only know which option I'd like to use on run-time.
A possible solution would be to duplicate the Web Site and use a condition for both options but this seems like an overkill for such a small option selection.
Is there a solution which doesn't involve duplicating the Web Site definition?
Also, Is there an integrated way to search for an existing Application Pool?
Thanks.