|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Setting up Permissions during installationHi 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 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 ) |
|||||||||||||||||||||||