GA.exe sets access permissions of one or more files or folders. It is a small program (8 KB) that can be used to adjust permissions during installation by running it in a custom action (QuickInstall) or Run Program action (ExpertInstall, Installer 5).
GA GA access name_or_SID path
The first form displays a syntax summary and exits. The second form applies the access permissions to path for the account name or SID name_or_SID.
| Parameter | Description |
|---|---|
| GA | Name of the program; .exe is implied. You may have to use a fully qualified file path if GA.exe is located in a folder that does not appear in your PATH environment variable. |
| (none) | Display a message box with version info and syntax summary; exit when the user closes the message box. |
| access | Desired access rights. This can be a combination of the following:
|
| name_or_SID | Name or SID (Security IDentifier) of the party to whom the rights are conveyed. This must be a name or SID of an existing built-in, local, or domain account.
If name_or_SID starts with the sequence S-, then GA interprets it as a security identifier; else it's assumed to be an account name. This implies that GA will fail if you are trying to use an account name that starts with S-. |
| path | Path to the file or folder. This path may contain wildcards; in that case, GA will set the permissions on all matching files or folders. |
The following table lists some well-known security identifiers that you can use for name_or_SID. Consult the MSDN documentation for more.
| English name | SID | Description |
|---|---|---|
| Everyone | S-1-1-0 | The Everyone group; allows access to all users and groups. |
| Creator Owner | S-1-3-0 | Pseudo-identifier that represents the account that created the file or folder. |
| Interactive | S-1-5-4 | Users who are loggen in for an interactive session. |
| Authenticated | S-1-5-11 | All authenticated users. |
| Users | S-1-5-32-545 | Local Users group. Note that this is not to the same as Everyone; the Users group only includes accounts that are explicitly added to it (usually designated restricted users). |
| Power Users | S-1-5-32-547 | Local Power Users group. |
| Administrators | S-1-5-32-544 | Local Administrators group. |
| Guests | S-1-5-32-546 | Local Guests group. |
GA adds the permissions to any existing or inherited permissions. If the target is a folder, then the additional permissions will be inherited by files and subfolders in the folder.
File and folder permissions are only supported on Windows NT-based systems (i.e., NT4, 2000, XP, Vista, and later) that use NTFS as their file system. GA.exe will not run on Windows 9x systems (i.e., Windows 95, 98, Me) and if you use GA.exe in an installer action, then you should make sure that GA.exe is not run on these systems (for example, by clearing the action's Platforms boxes for Windows 95, 98, Me).
Here are some usage examples.
|
|
| Home | Installer 5 | ExpertInstall
3 | QuickInstall
2
| Buy online | Download | Support Copyright © 1990-2008 Tarma Software Research Pty Ltd. All rights reserved. This page was last modified on 13-03-08 10:47 |