RainwayApp / bug-tracker

Report all issues found with Rainway here, or make suggestions for new features. 🐜
https://rainway.io/
27 stars 3 forks source link

Rainway auto update with UAC cancels Rainway starting #319

Open Knagie opened 5 years ago

Knagie commented 5 years ago

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

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

Browser

AetherCollective commented 5 years ago

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.

Knagie commented 5 years ago

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.

apecoraro commented 5 years ago

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

riverar commented 5 years ago

Why does Rainway need elevated privileges to begin with?

andrewmd5 commented 5 years ago

@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.

riverar commented 5 years ago

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