Project

General

Profile

Actions

Emulator Issues #12151

closed

Windows updater does not properly request administrator access

Added by superluig164 over 4 years ago. Updated about 2 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
Windows
Issue type:
Bug
Milestone:
Current
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

Currently, the updater does two undesirable things:
When Dolphin is installed in a protected folder (such as Program Files) the Updater does not ask for administrator privileges before attempting to run, and subsequently fails.

When the Updater fails, it fails silently, with no error or warning that the update did not succeed.

I propose that either the Updater ask for permission when in a protected folder, or at least inform the user to run Dolphin as administrator so that when it launches the updater, it also runs elevated, allowing it to succeed.

Actions #1

Updated by delroth over 4 years ago

We already do that though? For a very long time too. https://github.com/dolphin-emu/dolphin/blob/master/Source/Core/WinUpdater/Main.cpp#L76

You did not provide any information about which Dolphin version you're using.

Actions #2

Updated by superluig164 over 4 years ago

delroth wrote:

We already do that though? For a very long time too. https://github.com/dolphin-emu/dolphin/blob/master/Source/Core/WinUpdater/Main.cpp#L76

You did not provide any information about which Dolphin version you're using.

I'm using 5.0-12106. I've had Dolphin in Program files since 5.0 stable. Never once has it asked for administrator permission before launching the updater, instead failing to update silently. I must launch Dolphin with administrator privileges first, to allow it to create a child process which is allowed to modify the protected folder.

Actions #3

Updated by delroth over 4 years ago

  • Subject changed from [Feature Request] Make the Updater request administrator permissions or issue a warning when required to Windows updater does not properly request administrator access
  • Status changed from New to Accepted
  • Operating system Windows added
  • Operating system deleted (N/A)

I just tested removing my permissions on my Dolphin folder and indeed we don't seem to be properly asking for administrator access. Haven't debugged why exactly, but we have code to try and do that, and it seems to not do what we expect.

Actions #4

Updated by superluig164 over 4 years ago

delroth wrote:

I just tested removing my permissions on my Dolphin folder and indeed we don't seem to be properly asking for administrator access. Haven't debugged why exactly, but we have code to try and do that, and it seems to not do what we expect.

Awesome, thanks. Can't wait to see this working properly!

Actions #5

Updated by JosJuice over 4 years ago

  • Milestone set to Current

Setting as Current, since stable releases frequently are installed to Program Files.

Actions #6

Updated by Anonymous about 2 years ago

Please post more specifics about the failure. Maybe a procmon log would help.

If I install Dolphin to Program Files (e.g. using a Local Admin login, or running the installer elevated), and then execute Updater.exe from c:\Program Files\Dolphin as a user without Admin privs, I see the expected UAC popup asking for creds of an account with Admin privs. If I provide creds, I see a new Updater.exe be created elevated as expected.

At the moment this issue does not look valid to me.

Actions #7

Updated by Anonymous about 2 years ago

Actions #8

Updated by JMC4789 about 2 years ago

  • Status changed from Accepted to Fixed
Actions

Also available in: Atom PDF