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..

  1. Select [System (64-bit)] from the Root drop-down.
  2. Set the Relative Executable Path to the relative path of the icacls.exe utility:

    icacls.exe

  3. 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.
  4. Click OK.
  5. Build your package by selecting Build » Build All Packages.