Menu

#75 Patch for running elevated program on Windows Vista and after

Next_Release
open
nobody
Patch
2022-05-17
2014-10-30
Bat
No

Permit to automatically run a program compiled in C::B in elevated mode on Windows

1 Attachments

Discussion

  • Bat

    Bat - 2014-10-30

    Patch update (formatting, ...)

     
  • Morten MacFly

    Morten MacFly - 2015-02-07
    • Type: --> Undefined
     
  • Teodor Petrov

    Teodor Petrov - 2016-01-20
    • labels: Patch, Compiler, Windows, Vista, Seven --> Compiler, Windows, Vista, Seven
    • Type: Undefined --> Patch
     
  • Andrew Cottrell

    Andrew Cottrell - 2022-05-17

    This patch is not needed for 99.999% of users and if a user needs to run the resulting app with elevated privileges then they IMHO should run C::B with elevated privileges instead of running elevated automatically.

    This will stop noobs running programs that could be harmful to their PC and then blame C::B.

    This ticket has been outstanding since 2014 and has gone no where, so this ticket could be closed and if people want it then it can be re-opened, but if it is then a config option needs to added for the option to try to run with elevated privileges so noobs do not ham their PC.

     
  • Bat

    Bat - 2022-05-17

    Yes, this old proposal is a patch for specific purpose (use case was a specific degrafmenter).
    So, yes, it's very infrequently needed. It didn't start program elevated in any case, but only in case program fail to launch with specific error "need elevation" (::GetLastError()==740), so it will trigger only on exectuable with a manifest requiring this elevation (or force by properties)

    Running whole C::B elevated has some adverse effects (at this time, under Seven or Vista didn't remebr exactly), including mess with PATH, loss of user configuration.
    But, not a problem to close it ;-)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.