I am trying to call this during an install to set permissions on a folder, the permissions change work but it still errors on finish of the installer any ideas?

cacls C:\Progra~1\CallBa~1 /p users:f /e

errors out with error code 2762

0 Comments   [ + ] Show comments

Answers (6)

Posted by: Ram 15 years ago
Senior Purple Belt
Put a semicollan after cacls C:\Progra~1\CallBa~1 /p/t/e;Users:F
Posted by: blade2 15 years ago
Blue Belt
Not winning so far, any other suggestions?

I have copied an pasted everythin you have in the switches, it all fails.
Posted by: Ram 15 years ago
Senior Purple Belt
Use the full path mate

try this as

XCACLS.exe <fullpathtofilename> /t/e/c Users:F
Posted by: anonymous_9363 15 years ago
Red Belt
Use SetACL instead. Although you'll have to deploy it, it can be used to permission the registry as well as files: CACLS can't apply ACLs to the registry. Also, an obvious trick which many people miss is to schedule the permissioning CA after CreateFolders and before InstallFiles. That ensures that your package doesn't waste time permissioning EVERY file, because by default files inherit their parent folder's permissions.
Posted by: fetgor 15 years ago
Senior Purple Belt
I always use Secedit, first create a file using mmc,add/remove Security Template: ex of file:

[Registry Values]
[Profile Description]
Description=Security Template for FlashPlayer
[File Security]
[Registry Keys]

Place it in Windows\Security\Templates, and after that run a custom action: type 3170, place it in install exequte seq, NOT Installed, 6550.

secedit.exe /configure /db Flash9f /cfg [WindowsFolder]Security\Templates\Flash9f.inf /areas REGKEYS FILESTORE SERVICES /quiet
By doing this you can always find on the host what files/Folders/keys that have got a changes security - very useful in troubleshooting scenarious.

Posted by: anonymous_9363 15 years ago
Red Belt
I always use SeceditI used to use SecEdit but found it to be somewhat less than user-friendly, as your post more than adequately shows! :) For example, what does:"%SystemRoot%\system32\Macromed\Flash\FlashUtil9f.exe",0,"D:AR(A;OICI;0x100100;;;WD)"

mean in plain English? [I know what it means, BTW, but I'm making a point here]. With SetACL:SetACL.exe -on "C:\my dir" -ot file -actn ace -ace "n:domain1\user1;p:change" at least I get a clue! :)

If one needs to document permissions, use a ReadMe.TXT alongside the MSI.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ