MAKEMSI quickly and reliably creates MSI files in a non-programmatic way
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
[Bottom][Contents][Prev]: Access[Next]: Adsi
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->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:

EXAMPLE

<$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">


Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006 & 2007 for the Windows SDK (Windows Installer) area.This external link was OK when tested at 12 Jun 2008Please email me any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Prev]: Access[Next]: Adsi


MAKEMSI© is (C)opyright Dennis Bareis 2003-2008 (All rights reserved).
Wednesday June 25 2008 at 7:16pm
Visit MAKEMSI's Home PageThis external link was OK when tested at 21 Jun 2008

HTML page dated Mon, 29 Jan 2007 00:11:11 GMT
Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006 & 2007 for the Windows SDK (Windows Installer) area.This external link was OK when tested at 12 Jun 2008