bug-tracker icon indicating copy to clipboard operation
bug-tracker copied to clipboard

Rainway auto update with UAC cancels Rainway starting

Open Knagie opened this issue 6 years ago • 6 comments

Rainway auto update with UAC cancels Rainway starting

Because of the UAC Rainway doesn't get the chance to install and won't start at boot

Steps

  • Install Rainway and make sure to have it set to start at boot
  • Wait for an update
  • Boot your PC and don't interact with it (I left for work)
  • Rainway will try to update and promt for UAC
  • Don't do anything with the UAC and after some time it will dissapear
  • Rainway won't be launched

What happens

Rainway doesn't start after a failed auto update because of no permission to start the update.

What is expected

Rainway would start without doing the update after it fails to execute the update.

Host

  • OS: Windows 10 Pro
  • Version: 1809 17763.437

Browser

  • OS: Windows 10 Education
  • Version: 1809 17763.379
  • Browser: Chrome
  • Browser Version: 73.0.3683.86

Knagie avatar Apr 13 '19 11:04 Knagie

Microsoft forces UAC prompts to disappear after a while for security reasons. Most users blindly click yes (or sudo) without thinking about what they are doing or the possible ramifications. Rainway won't be able to petition Microsoft to change this security setting.

Rainway might be able to detect when UAC prompt fails to provide admin access and could do a number of things: alert user that update failed with instructions how to update, delay the update on schedule, delay the update until user input.

Rainway might also be able to bypass UAC via Task Scheduler task. Piriform does this on their product, CCleaner.

AetherCollective avatar Apr 13 '19 12:04 AetherCollective

I was more thinking along the lines of your second paragraph. If they can detect when UAC fails and they can just start the old version without updating and putting a warning message up on the screen showing Rainway couldn't update/How to update that would be the best solution in my opinion.

Knagie avatar Apr 13 '19 12:04 Knagie

Appears to be installer issue, so assigning to @AnthonyM.

apecoraro avatar Apr 15 '19 22:04 apecoraro

Why does Rainway need elevated privileges to begin with?

riverar avatar Jul 31 '19 05:07 riverar

@riverar quite a few reasons. Capturing the desktop requires administrative privileges just to start, but we also run a SYSTEM service. Because of this, when a UAC prompt (or any secure desktop like the Windows login screen) is active Rainway can still capture it, and allow you to interact with it.

andrewmd5 avatar Jul 31 '19 05:07 andrewmd5

@Codeusa Ah. Capturing the desktop doesn't normally require elevation but I see you want to support UAC scenarios. That's fair, thanks!

riverar avatar Jul 31 '19 05:07 riverar