I have an installation project that creates 3 virtual directories. 2 are ASP.NET applications and one is a data directory. The system requires read/write access to the data directory, and I cannot seem to get the right settings to ensure that this works across a variety of installation targets (OS' and versions of IIS).
It seems that windows XP includes IIS 5.x, and the system runs under the ASP.NET user account (by default). Win2K3 installs IIS 6, and runs under NETWORK SERVICE (In fact I create an AppPool and specify NetworkService in the Appliction Pool Security section), but the data virtual directory (not being an application) is not assigned to an app pool.
I have implemented the solution suggested in this post:
http://www.advancedinstaller.com/forums ... is+asp.net
But it does not seem to set the correct permissions on Windows 2003 Server. I am now using the condition "VersionNT>502" to specify NETWORK SERVICE for any OS other than XP or less. I think that this works, but wonder if it might be better to:
a) Actually determine the user account under which the web server is running or
b) Test the version of IIS rather than the version of the OS in the condition to determine ASP.NET or NETWORK SERVICE user