MBINCompiler icon indicating copy to clipboard operation
MBINCompiler copied to clipboard

SecurityException when trying to use the 'register' command.

Open GaticusHax opened this issue 6 years ago • 1 comments

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 avatar Nov 03 '19 04:11 GaticusHax

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.

GaticusHax avatar Nov 03 '19 05:11 GaticusHax