AccessControl plug-in: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Added category links.)
m (Adding new author and category links.)
Line 1: Line 1:
{|align=right
{{PageAuthor|tbf}}
|<small>Author: [[{{ns:2}}:tbf|tbf]] ([[{{ns:3}}:tbf|talk]], [[{{ns:-1}}:Contributions/tbf|contrib]])</small>
 
|}
<br style="clear:both;">
== Links ==
== Links ==
<attach>AccessControl.zip</attach>
<attach>AccessControl.zip</attach>
Line 32: Line 30:
Written by [http://taschenorakel.de/mathias/ Mathias Hasselmann]
Written by [http://taschenorakel.de/mathias/ Mathias Hasselmann]


[[{{ns:14}}:Plugins]]
[[Category:Plugins]]

Revision as of 11:26, 24 June 2005

Author: tbf (talk, contrib)


Links

AccessControl.zip (48 KB)

Description

Supported on: Windows ME+, Windows 2000+.

The AccessControl plugin for NSIS provides a set of functions related Windows NT access control list (ACL) management.

Usage Example

# Give ownership for file C:\test.txt to Waterloo\Mathias
  AccessControl::SetFileOwner \
    "C:\test.txt" "Waterloo\Mathias"
 
# Give all authentificated users (BUILTIN\Users) full access on
# the registry key HKEY_LOCAL_MACHINE\Software\Vendor\SomeApp
  AccessControl::GrantOnRegKey \
    HKLM "Software\Vendor\SomeApp" "(BU)" "FullAccess"
 
# Same as above, but with a numeric string SID
  AccessControl::GrantOnRegKey \
    HKLM "Software\Vendor\SomeApp" "(S-1-5-32-545)" "FullAccess"

Detailed usage instructions can be found in the package.

Credits

Written by Mathias Hasselmann