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

SecurityException when trying to use the 'register' command. #171

Open
GaticusHax opened this issue Nov 3, 2019 · 1 comment
Open

SecurityException when trying to use the 'register' command. #171

GaticusHax opened this issue Nov 3, 2019 · 1 comment
Labels
bug An unexpected and/or unintended program behaviour.

Comments

@GaticusHax
Copy link
Collaborator

GaticusHax commented Nov 3, 2019

If the user tries to use the MBINCompiler register command without elevated privileges then a SecurityException is thrown.

This message is not very clear. A more helpful error message should be provided explaining that the exe must be run as administrator along with instructions (or a link) to describe how to elevate the exe.

The help info for the register command should also indicate that the exe must be run as admin.

@GaticusHax GaticusHax added the bug An unexpected and/or unintended program behaviour. label Nov 3, 2019
@GaticusHax
Copy link
Collaborator Author

It is also possible to invoke a new/separate/secondary elevated instance of MBINCompiler from the original, unauthorized instance, so the user would be prompted for admin rights only if they try to execute the register command.

In the event that they cancel/decline the admin elevation, then it should fall back to the (helpful) exception handler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected and/or unintended program behaviour.
Projects
None yet
Development

No branches or pull requests

1 participant