Help me with the step by step procedure to set permissions to folder using CACLS?

Does the script varies for every time or it's same for every one to set permissions?

If setting permisions to folder is easy using lock permission table then please let me know the way so that I can use that?

I need to set read/modify/write to folders Config, Data, Resources under C:\Program Files or Program Files (x86)\Deloitte\HERCules allow all users. 

Thanks in advance.

0 Comments   [ + ] Show Comments


Please log in to comment

Community Chosen Answer


Open command prompt and type




CACLS "%ProgramFiles%\Deloitte\HERCules\Config" /T /E /G Users:C

CACLS "%ProgramFiles%\Deloitte\HERCules\Data" /T /E /G Users:C

CACLS "%ProgramFiles%\Deloitte\HERCules\Resources" /T /E /G Users:C

Answered 03/28/2013 by: jagadeish
Red Belt

Please log in to comment



There are a lot of different ways as well to give permissions if this does not work for you.

You can have a look here:

Answered 04/22/2013 by: piyushnasa
Red Belt

Please log in to comment

use custom installshield handling... not the traditional lockec permissions

Answered 03/28/2013 by: jaybee96
Red Belt

Please log in to comment

First, your seeming inability to perform basic research remains unchanged after...oooh, what must be it be now, 2 years? It is now beyond irritating.

Second, you seem to have got to this stage in your packaging "career" without building a set of basic tools, the most fundamental of which is called Google.

As for the particular scenario you outline in this post, any packager worthy of the title will have a routine for this situation involving the use of properties whose values are passed to a pre-built script which has been added to their packaging templates.

Answered 03/28/2013 by: VBScab
Red Belt

  • This is not the place to make these type of comments. I didn't mentioned your name in order to reply me. You have given 10 lines of answer even though even 1 line didn't helped me. This is not the first time that I have faced this type of situation. If you know the solution just help people with that and if you know and even if you u dnt like to help then dnt to that's it. You are the one every time gives these type of un necessary comments.
  • Strangely, I totally disagree. You continue to expect other people to perform the most basic tasks for you and are seemingly unable to conduct even basic research of your own, even after - by your own admission! - having been admonished for that very thing in the past. You take the term "bone idleness" to a new high.

    Even a cursory review of my past posts will show that I am more than willing to help people, provided they have done at least *some* work of their own first and these people - unlike you - seem to learn from that experience. For God's sake - not to mention your poor employer - get yourself on a Windows Installer course!
Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja