This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Default application pool write-access
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
May 28, 2013
02:27 AM
Default application pool write-access
Hey guys,
Considering how IIS default application pool user identity evolved on different windows editions, can someone tell if there is a generic way to grant write access to specific folder in the web application folder.
The installer I am working on should work on multiple Windows editions and I am trying to know what options do I have to simplify the process.
Considering how IIS default application pool user identity evolved on different windows editions, can someone tell if there is a generic way to grant write access to specific folder in the web application folder.
The installer I am working on should work on multiple Windows editions and I am trying to know what options do I have to simplify the process.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
May 28, 2013
11:08 AM
Do you mean something like this? We use this code in the Feature_Installed() section of FeatureEvents.rul in an InstallScript Only project:
HTH
SdShowMsg( "Modifying Web Files", TRUE );
strPath = TARGETDIR ^ "Website";
if SYSINFO.WINNT.bWinServer2003 = TRUE then
szIISAccount = "IIS_WPG:F";
elseif SYSINFO.WINNT.bWin7_Server2008R2 = TRUE || SYSINFO.WINNT.bWinVista_Server2008 = TRUE then
//new in IIS7: IIS_IUSRS replaces IIS_WPG
szIISAccount = "IIS_IUSRS:F";
endif;
LaunchAppAndWait( WINSYSDIR ^ "cmd.exe", "/c cacls \"" + strPath + "\" /T /E /G " + szIISAccount, WAIT );
SdShowMsg( "Modifying Web Files", FALSE );
HTH