cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mikegillow
Level 5

How to set IIS App Pool Identity and password

I have an InstallScript MSI project that is setting up a web site. We need it to set up a run as identity for the App Pool. This is almost working, but the password is not getting set properly when I try to use a Property instead of a hard-coded entry. In the IDE, I specified [ComputerName]\[RUNASUSER] for the username - that works fine. I typed in [RUNASPWD] in the password field, but since that field shows only dots, I checked the UserPassword column in the ISIISAppPool table using the direct editor just to make sure. When I run the install I get no errors, but I find that I have to go into the IIS manager and reset the password in order for the site to run properly. If I build the install and type the password directly into the IDE, it works.

Can I use a Property for the password on the App Pool identity, and if so, how?

thanks,
Mike
Labels (1)
0 Kudos
4 Replies
Christopher_Pai
Level 16

I've not tested this ( I'm currently off site with only XP available which doesn't support app pools this way ) but if you find that the built-in InstallShield custom actions aren't formatting the UserPassword column of the ISIISAppPool table you can always use a custom action to read the value into the CA, call the format API and then use a temporary view to write it back out so that when the built-in deferred caCreateVRoots fired it'll process your data instead of the property name.

Still, I personally try to design my applications to run with one of the built-in service accounts. It generally makes the whole system more stable by removing points of fragility from the design.
0 Kudos
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

For what it's worth, the User and UserPassword fields in the ISIISAppPool table are resolved at runtime. As long as your property values are set prior to the caExtractIISSuppFiles action running, the properties should be resolved.

Does the username show up in the IIS manager when you view the application pool properties, or does the raw value you entered for the username in the IDE appear?
0 Kudos
mikegillow
Level 5

I'm not 100% sure that this is the answer, but I was having problems getting the install to run on a 2008 server (it choked on the app pool setup and rolled back) and found this thread. I copied the 'unofficial' iishelper.dll to my build machine - the resulting install ran OK on 2008, plus appears to have been the fix for my password problem on the 2003 server as that issue has also 'gone away'.

Is there an 'official' fix that includes the iishelper.dll?

Mike
0 Kudos
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

An official fix was provided in KB Q200236.

One note about the fix for Windows Server 2008 is the code changes were isolated to the portion of the custom action code that is specific to IIS7, so I'm not sure how that would change the behavior you are seeing with application pools on IIS6.
0 Kudos