- Status New
- Percent Complete
- 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
- Mario Rohkrämer (06.04.2014)
- Private
Attached to Project: PlaneShift
Opened by Mario Rohkrämer - 23.11.2013
Last edited by Mario Rohkrämer - 09.12.2014
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.
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
Do I have to "confirm" this task on my own? Nobody interested?
Confirming; assigning to Eredin.