Setting File Permissions
- Updated2025-04-10
- 1 minute(s) read
You can create a custom execute to set the file permissions after you install a package. For example, you can invoke the Windows icacls.exe utility in a Post Install custom execute..
- Select [System (64-bit)] from the Root drop-down.
- Set the Relative Executable Path to the relative path of the
icacls.exe utility:
icacls.exe
- Enter the following in the Arguments field to specify its
arguments:
"<Path>" <action> "<username>":<permission> <options>"
Replace <Path> with the full path for the file or directory that you want to operate on, and <action>, <username>, <permission>, and <options> appropriately.For example, the following in a Post Install custom execute gives all users full control to files in a directory and subdirectories:"%ProgramData%\My Company\My Application Files" /grant:r "Users":F /t /c"
Note To learn more about the possible arguments to the icacls.exe utility, run an internet search on icacls.exe. - Click OK.
- Build your package by selecting Build » Build All Packages.