Corey
Posts: 13
Joined: Tue Mar 25, 2014 4:54 am

Define Application Pool Identity

Hi,
I am trying to set the application pool identity based on a selection. I know I can set the User and password based on a property easily. What I want to achieve though is a little more complicated.

If the user selects Integrated security, they have the option of setting the App Pool Identity to a Domain User
If the User selects SQL then the App Pool identity needs to be set to a built in user account

I have tried to create a new App Pool for each Option which would work fine, however I cannot set the App Pool of the website to the correct one as there are no conditions to configure.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Define Application Pool Identity

Hello,

In order to achieve that you can select the Use existing application pool option from the Application pool association tab of your web site and use a property (e.g. [APP_POOL_NAME_1]).

In the Basic Pool Settings tab of your pool you can add a reference to a installer property for the name of each pool.
Since you cannot use the same property for your application pool, you can define another property with the same value.

Make sure you condition the creation of your AppPools based on the user choice, so that only one of them is installed

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Corey
Posts: 13
Joined: Tue Mar 25, 2014 4:54 am

Re: Define Application Pool Identity

Thanks Dan, that worked perfectly. One more item though

Can I set IIS to install before the file copy? At the moment if IIS is not installed it will copy the files to the WWWRootFolder under the installation directory. However if IIS is installed it copies to inetpub/wwwroot which is what I wish to happen every time.

Looking in Organization I cannot see IIS under features and coponents. I am installing IIS from the prerequsites tab under windows features
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Define Application Pool Identity

Hello,

For the moment the Windows feature can not be controlled to run before the setup.

As a work around you can create a helpsetup and run the helpersetup from the mainsetup as a Pre-Install prerequisite. For the help setup package, disable the Register product with Windows Installer option from the Product Details page.

You can take a look on the Windows feature activation AI 10.2 forum thread which debates a similar subject.

Please let me know if you have other questions.

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

Return to “Common Problems”