Setting up Permissions during installation

A

Anbu

Hi All,

I'm writing an installer to install ASP .net web site on the web
server. The application needs to generate log files based on the input.
These log files will be passed by the administrator while installing
the application.

Could any one tell me how to provide privilege to a particular folder
when installing the application? Is CACLS.exe the only way for this?

Is there any classes available in .NET to change the directory
permission to develop the functionality?

I'm using .NET 2005.

Thanks,
Anbu
 
V

Vadym Stetsyak

Hello, Anbu!

A> I'm writing an installer to install ASP .net web site on the web
A> server. The application needs to generate log files based on the input.
A> These log files will be passed by the administrator while installing
A> the application.

A> Could any one tell me how to provide privilege to a particular folder
A> when installing the application? Is CACLS.exe the only way for this?

A> Is there any classes available in .NET to change the directory
A> permission to develop the functionality?

You can set permissions with the help of classes from
System.Security.AccessControl.

For good samples you can look here ( http://west-wind.com/weblog/posts/4072.aspx )

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top