\
Source Code
Commands
AccessApply
The "AccessApply" Command - Applies Access permissions |
Permissions defined with the
"ACCESS" command can be used on the
"File", "Files",
"Directory", "DirectoryTree"
and "Registry" commands, however sometimes you have
preexisting items that you wish to use and this is what this command
enables.
To do this the "LockPermissions" table
will be updated.
This command takes these parameters:
- Access (required)
This is one or more (space separated) special user permissions
which have previously been defined using the
"Access" command(s).
- RowKey (required)
This is a foreign key into a msi table.
- Type (required)
This determines the table that the "RowKey" is a key into,
Valid (case insensitive) options are:
<$Access "FullAccess4Admins" Access="GENERIC_ALL" Users="Administrators SYSTEM">
<$Access "ReadOnly4Users" Access="GENERIC_READ" Users="Users">
<$Access "ReadAndExecuteOnly4Users" Access="GENERIC_READ GENERIC_EXECUTE" Users="Users">
<$Component "CreateTheFolder" Directory_="<$AnyDir>" LM="Y">
<$Table "CreateFolder">
<$Row Directory_="PROTECT_THIS_DIR_FROM_USERS" Component_="<$Component?>"> ;;"PROTECT_THIS_DIR_FROM_USERS" directory already defined
<$/Table>
<$/Component>
<$AccessApply Type="folder" RowKey="PROTECT_THIS_DIR_FROM_USERS" ACCESS="FullAccess4Admins ReadOnly4Users">
<$AccessApply Type="file" RowKey="<$VENDOR_OCX_FILEKEY>" ACCESS="FullAccess4Admins ReadAndExecuteOnly4Users">