Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / June 2006

Tip: Looking for answers? Try searching our database.

Setting up Permissions during installation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Anbu - 12 Jun 2006 14:46 GMT
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
Vadym Stetsyak - 12 Jun 2006 15:08 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.