Phobos
Posts: 85
Joined: Fri Sep 08, 2006 11:52 am
Location: Germany

Set Application Pool

Hi,

When installing a web application, is there a way to create a new application pool, and to automatically add the web application?

Currently I create the application pool using a script, but I do not know how to move the web application to this new pool, and how to set the application pool identity.

Any idea? Thanks!
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

By default Advanced Installer adds all the web applications in the Default Application Pool. But we add this on our TODO list (the
possibility to create a new application pool) and will be available in a future version of AI. I'm afraid that I cannot give you an ETA for now. Thank you for your suggestion.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Phobos
Posts: 85
Joined: Fri Sep 08, 2006 11:52 am
Location: Germany

Hi Gigi,

Thanks for the reply. Any idea how I could do this right now?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
Any idea how I could do this right now?
You can create a custom action. Here are some steps you must follow when you create your custom action:

- IIS 6 or above;

- use ADSI IIS COM classes;

- create an object of type: "IIsApplicationPool" (ADSI COM class);

- AppPools are stored under ADSI path: "IIS://localhost/W3SVC/AppPools"
- And you can access a specific pool through the Children collection.
For ADSI paths a child looks like this: "IIS://localhost/W3SVC/AppPools/DefaultAppPool"

- Eg.
Website ADSI path: "IIS://localhost/W3SVC/n"
Virtual Directory ADSI path: "IIS://localhost/W3SVC/n/ROOT/vdir_name"
(n = the website index)
- set the Property: "AppPoolId" for your IIS entity to the name of the previously created
"IIsApplicationPool" object;

Hope this helps.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
UnstoppableDrew
Posts: 32
Joined: Tue Oct 16, 2007 4:04 pm
Location: Burlington, MA USA
Contact: Website Yahoo Messenger

Did this feature ever get implemented ? I see in the iis configuration you can set it to low, medium (pooled) or high (isolated), but they all still end up in the default app pool.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

This feature has not been implemented yet, but it will be available in a future version of Advanced Installer.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”