Janan Posted February 25, 2008 Posted February 25, 2008 How to assign permission for MSI using CACLS.exe? I will need to wrap the MSI in a WiseScript wrapper and use the Execute Program action to call CACLS.Exe to set the permissions on the MSI.Could any one help me on this with example?Thanks & Regards,Janan.R
MadBoy Posted February 25, 2008 Posted February 25, 2008 How to assign permission for MSI using CACLS.exe? I will need to wrap the MSI in a WiseScript wrapper and use the Execute Program action to call CACLS.Exe to set the permissions on the MSI.Could any one help me on this with example?Thanks & Regards,Janan.RDisplays or modifies access control lists (ACLs) of filesCACLS filename [/T] [/E] [/C] [/G user:perm] [/R user [...]] [/P user:perm [...]] [/D user [...]] filename Displays ACLs. /T Changes ACLs of specified files in the current directory and all subdirectories. /E Edit ACL instead of replacing it. /C Continue on access denied errors. /G user:perm Grant specified user access rights. Perm can be: R Read W Write C Change (write) F Full control /R user Revoke specified user's access rights (only valid with /E) /P user:perm Replace specified user's access rights. Perm can be: N None R Read W Write C Change (write) F Full control /D user Deny specified user access.Wildcards can be used to specify more that one file in a command.You can specify more than one user in a command.Abbreviations: CI - Container Inherit. The ACE will be inherited by directories. OI - Object Inherit. The ACE will be inherited by files. IO - Inherit Only. The ACE does not apply to the current file/directory.For example: cacls C:\your_msi_file.msi /E /T /G Everyone:C
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now