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

Move checkIsRunning after tryElevate to ensure that we have permission to create GLOBAL event #149

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stephen9358
Copy link

Fix the mismatched error message when running with non-admin context.

@jagt
Copy link
Owner

jagt commented Oct 23, 2023

Hi! What's this PR is fixing? Is that elevate would fail in some cases?

@stephen9358
Copy link
Author

Hi! What's this PR is fixing? Is that elevate would fail in some cases?

Creating global event will fail without elevating first, so we see a MessageBox saying that already running, which it's not an accurate error message.


image

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.

2 participants