This repository was archived by the owner on Feb 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
when running with administrative rights, set environment variables at…
… Machine scope The CurrentPrincipal::IsInRole(Administrators) check is sufficient to ascertain administrative rights, whether UAC is enabled or not. In particular, if UAC is enabled, this check will only return true if running elevated. This change enables per-machine installation on systems with UAC enabled (only if the user installs/invokes Chocolatey from an elevated shell, so UAC prompt is not triggered), while not disrupting the behavior for standard users.
- Loading branch information
1 parent
eaf8ab2
commit 6dfbc44
Showing
3 changed files
with
6 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters