 
Set Variable MYPATH to C:\test
Set Variable MYPATH_TWO to C:\testTwo
Set Variable MYPATH_THREE to C:\testThree
 
Set Variable NATIVE_ENGINE to TRUE
Create Folder $MYPATH$
Create Folder $MYPATH_TWO$
Create Folder $MYPATH_THREE$
Write Registry Key HKLM\software\mytest\Mykey, test
Set Variable NATIVE_ENGINE to FALSE
 
Comment: Permissions to Users
Set Read Write Permissions on File System Object "$MYPATH$" for Users
Set Read Write Permissions on Registry Key "HKLM\software\mytest" for Users
 
Comment: No permissions assigned - anyone can access this object
Grant Complete Access to File System Object "$MYPATH_TWO$"
 
Comment: Permissions to Everyone
Set Read Write Permissions on File System Object "$MYPATH_THREE$" for Everyone 
 
