PlaneShift

  • Status New
  • Percent Complete
    0%
  • Task Type Feature Request
  • Category Engine → Tools → Updater/PSLaunch
  • Assigned To
    Joe Lyon
  • Operating System
  • Severity Medium
  • Priority
  • Reported Version
  • Due in Version Undecided
  • Due Date Undecided
  • Votes 1
  • Private
Attached to Project: PlaneShift
Opened by Mario Rohkrämer - 23.11.2013
Last edited by Mario Rohkrämer - 09.12.2014

FS#6250 - Temporary privilege elevation during update?

I hope it is technically possible to programmatically request a further execution of the launcher as administrator to be able to exchange binaries in UAC protected directories (%ProgramFiles% or %ProgramFiles(x86)% under Windows Vista/7/8…); and may it just be by the launcher calling itself as a new instance executed under the Administrator account.

Other platforms than Windows may require a similar solution.

Mario Rohkrämer commented on 29.11.2013 10:58

For the Windows version, it is probably useful to read about "building UAC-aware applications" and "UAC self-elevation".

There are reports to use a new ProcessStartInfo() instance with ProcessStartInfo.UseShellExecute = true and ProcessStartInfo.Verb = "runas" to start a new instance like using "Run as Administrator" in the Explorer context menu.

Another technique: UAC self elevation with C++ sample code

Mario Rohkrämer commented on 06.04.2014 08:52

Do I have to "confirm" this task on my own? Nobody interested?

Mario Rohkrämer commented on 09.12.2014 08:25

Confirming; assigning to Eredin.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing