JTrax
Posts: 12
Joined: Wed May 04, 2016 7:13 pm

apppool permission how to set them on a folder

So I have an apppool that is created and it needs to write to a folder, not all, in the system. I can't set it in the Files and folders area like I could if it were an account. I have a powershell script that sets the app pool permissions using "iis apppool\apppoolname" but having to do it as a custom action and such is a bit of a work around because I can't easily tell in the logs if it works. I also have to pass in the app pool name since it is a variable in the installer, as is the folder location (full path)
I have to use a different script to run on uninstall etc.

is there an easier way to do this or could this somehow get added in the future to the files and folders section of AI where you pick the users in that pop up it would add the app pools so NTFS permissions could be done and undone by the installer?

thanks

Rich
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: apppool permission how to set them on a folder

Hello Rich,

I apologize for my delayed reply.

Currently this is possible only by using a custom action. This is because the installation action that create and set permissions on folders executes before the action that install the IIS entities. Please take a look on our "AppPool Identity and Folder Permissions" thread which debates the same limitation.

I've forwarded your feature request to our development team and maybe such improvement will be considered in the future. Thank you for your suggestion.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”