I am updating one of our installers for .NET 4.0 and IIS 7.5, and one of the tasks is to switch AppPool to use its own authentication. I found this pretty trivial in WiX using the IIS extension, but I'm struggling with two additional permission sets that we define, in particular, to provide write permissions for Identity AppPool:
<Directory Id="LOGS_LOCATION" Name="logs"> <Component Id="LogsFolder" Guid="{3A7C38C7-6604-4063-A425-D62427B21AEE}" KeyPath="yes" DiskId="1"> <CreateFolder> <Permission User="Administrators" GenericAll="yes"/> <Permission User="[ASPNET_USER]" Domain="[ASPNET_DOMAIN]" GenericRead="yes" GenericWrite="yes" Read="yes" Delete="yes" DeleteChild="yes" Traverse="yes"/> </CreateFolder> </Component> </Directory>
ASPNET_USER and ASPNET_DOMAIN defined as AppPoolName and IIS APPPOOL respectively (where AppPoolName exactly matches the name of the application pool).
When I run the installer, I get an error 1609, which indicates that IIS APPOOL\AppPoolName not a valid identifier, and the installation fails. How do I specify the application pool identifier in the Permission element so that the web application can write to the log directory? Do I need to use a different personality?
source share