Page 1 of 1

Set Access Control, what's the right way?

Posted: Sat Dec 19, 2020 10:11 pm
by sse123
Hi,

We are using InstallAware Admin X11. I am struggling to set permissions to subdirectories and files in InstallAware.

I am trying to ensure that a folder, and all files and subfolders within that folder, will have Read/Write for Authenticated Users. My MSICode for this is just after Apply Install, as specified in the hint.

What is the correct approach? I believe I have selected the appropriate options, ref included screenshot.
SetAccessControl.png
SetAccessControl.png (26.45 KiB) Viewed 3835 times


Thank you.

Re: Set Access Control, what's the right way?

Posted: Mon Dec 21, 2020 2:29 pm
by FrancescoT
I did a simple test using the code below, and permissions were applied correctly.

Code: Select all

Set Variable NATIVE_ENGINE to TRUE
Create Folder c:\myfolder
Set Read Write Permissions on File System Object "c:\myfolder" for Authenticated Users

set_access_ctrl.png
set_access_ctrl.png (24.91 KiB) Viewed 3821 times

The only difference here with my test, it's that I had to use the latest IA version.