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?