Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabled applications which require elevated privileges. #2053

Conversation

excitoon
Copy link
Contributor

@excitoon excitoon commented Feb 27, 2018

Hi.

Sometimes shim does not work because CreateProcess() returns ERROR_ELEVATION_REQUIRED error (e.g., scoop install rufus && rufus). We can't completely replace code with ShellExecute() because it would break running programs in the same console window, that is why I first check for ERROR_ELEVATION_REQUIRED, and then use ShellExecute() (in .NET way).

I guess, this really fixes #1319 (#579) for UAC-enabled systems.

@excitoon
Copy link
Contributor Author

excitoon commented Mar 9, 2018

Hi. @lukesampson . Can you take a look at it?

@rasa rasa added review-needed Asks for review of these changes solve-conflicts labels Mar 12, 2018
Copy link
Member

@rasa rasa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (but untested)

@excitoon excitoon force-pushed the shim-applications-which-require-elevated-privileges branch from ba7666a to 1b7ae6f Compare March 12, 2018 23:19
@excitoon
Copy link
Contributor Author

Rebased.

@r15ch13 r15ch13 merged commit 2d9f964 into ScoopInstaller:master Mar 13, 2018
@r15ch13
Copy link
Member

r15ch13 commented Mar 13, 2018

Quick to make this work, execute scoop reset rufus or scoop reset *

@rasa rasa removed the review-needed Asks for review of these changes label Mar 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants