apajovejohn
Posts: 19
Joined: Tue Dec 18, 2018 6:11 pm

Creating AppPool with different properties

Thu Jan 31, 2019 6:00 pm

Hi folks,
My installer creates a website and associated app pool. I allow the user to specify either local system OR a user account for the app pool to run under.

This leads to be needing to create the app pool with either the default identity, OR an identity with account details.

I imagined that all I'd need to do is add two app pools to the installer with a condition to select the correct one, but I cannot add two app pools with the same name, so I'm not sure what the best approach is.

Anyone got any suggestions of how to proceed?

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Creating AppPool with different properties

Mon Feb 04, 2019 1:22 pm

Hello,

Indeed, you can not use the same name for two "Application Pools". However, there is a little trick you can use in order to achieve that:

- Please go to "Install Parameters" page and create a new property and, as the property value, you can have the name you want to give to the "Application Pool".

- Now go to "IIS" page and create two "Application Pools", one having as name the earlier created property and one having the normal name.
Capture.PNG
Capture.PNG (5.58KiB)Viewed 3056 times
Capture1.PNG
Capture1.PNG (4.1KiB)Viewed 3056 times
Hope this helps.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

apajovejohn
Posts: 19
Joined: Tue Dec 18, 2018 6:11 pm

Re: Creating AppPool with different properties

Mon Feb 04, 2019 5:17 pm

That looks like just the ticket! Not sure I would ever have come up with that myself!

Many thanks

John

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Creating AppPool with different properties

Tue Feb 05, 2019 9:11 am

You are always welcome, John.

Glad I could help.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”