By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,853 Members | 1,034 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,853 IT Pros & Developers. It's quick & easy.

grant ASPNET modify access when deploying using Installer in VS

P: n/a
Hi all

I am using VS.NET 2003 installer to deploy my ASP.NET application. I want
to allow ASPNET write access to some files in subfolders of the
inetpub/wwwroot/myApp/mySubfolder using VS.NET 2003 deploy project. Is there
a
script or conditions that I have to set in the deployment project's
properties?

I have tried deploying it but could not find where I would grant ASPNET
modify access to the files in the subfolder. I don't want clients to set the
permissions manually.
Thanks
Harry

Nov 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

Harry:

I think I can give you some general pointers.

You'll need to add a "custom action" to the installer:
http://msdn.microsoft.com/library/de...tomActions.asp

Inside the action you could run the cacls command line utility that is
part of Windows. Something like:

cacls c:\path /e /t /p domain\useraccount:W

Type cacls from the cmd prompt and it will dump all the parameter
possibilties.

HTH,

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Mon, 31 Jan 2005 18:52:55 -0500, "harry"
<NO*****************@hotmail.com> wrote:
Hi all

I am using VS.NET 2003 installer to deploy my ASP.NET application. I want
to allow ASPNET write access to some files in subfolders of the
inetpub/wwwroot/myApp/mySubfolder using VS.NET 2003 deploy project. Is there
a
script or conditions that I have to set in the deployment project's
properties?

I have tried deploying it but could not find where I would grant ASPNET
modify access to the files in the subfolder. I don't want clients to set the
permissions manually.
Thanks
Harry


Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.