I'm writing an MSBuild installer for a web application that's hosted on IIS7.5
Up until now, setting up the web app has been a manual process using IIS Manager.
The process involves setting up credentials for the application's Physical Path but I'm struggling to find out how to do this with the extension pack.
Does anyone know:
- if it's possible to achieve this?
- how?
- which version of the extension pack supports it?
Tia, Mike
I've found a way of doing this using the extension pack to set Virtual Directory Defaults I've posted my answer in case it helps anyone else down the line. Mitul's comment is also worth trying for anyone needing finer grain control.
The version of the extension pack we were using was rather old. In the current version, the ConnectAsUser and ConnectAsUserPassword properties of the Iis7Website class can be used to set the default username and password for the website's virtual directories:
Thanks, Mike