Run as normal user

Questions about Wine on Linux
Locked
Bamm
Level 4
Level 4
Posts: 136
Joined: Thu May 22, 2008 3:18 am

Run as normal user

Post by Bamm »

Hi,

When running a certain installer it tells me this message:

===============================================
Installation Failed.

Please re-run this installer as a normal user instead of "Run as
Administrator".
===============================================

How do I test this by running it as a normal user?

Thanks.
fargodwe

Re: Run as normal user

Post by fargodwe »

See this thread in the forum - I think it applies:

Code: Select all

https://forum.winehq.org/viewtopic.php?f=8&t=34481
Bamm
Level 4
Level 4
Posts: 136
Joined: Thu May 22, 2008 3:18 am

Re: Run as normal user

Post by Bamm »

Thanks! The solution there mentions I should run it as:

Code: Select all

wine runas /trustlevel:0x20000 ~/Downloads/install.exe
However, I get:

Code: Select all

0009:err:module:__wine_process_init L"C:\\windows\\system32\\runas.exe" not found
fargodwe

Re: Run as normal user

Post by fargodwe »

i think that is explained in that thread:

Code: Select all

...unfortunately there's another bug and the needed 'runas' executable isn't getting built on recent versions
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: Run as normal user

Post by spoon0042 »

Correct. In theory you could temporarily install an older version of wine-staging, the bug report mentions "guessing" 5.11, to run the installer. (I may test this later, I should have time.)
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: Run as normal user

Post by spoon0042 »

5.11 and 5.15 have runas but at least the WhatsApp installer still popped up that error message for me. (side note: 5.12 and later have bugs installing dotnet if that's something you need.) So you may need something even older. ugh.
Bamm
Level 4
Level 4
Posts: 136
Joined: Thu May 22, 2008 3:18 am

Re: Run as normal user

Post by Bamm »

Will getting runas.exe from wine-staging work on wine-stable 5.0.2?
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: Run as normal user

Post by spoon0042 »

It looked to me like 'runas' doesn't do much itself but depends on dll functions in whatever staging patch implements this functionality.
kimme
Newbie
Newbie
Posts: 1
Joined: Fri Mar 20, 2009 9:47 am

Re: Run as normal user

Post by kimme »

wine-6.0 (Staging)

The problem persists with the above mentioned "runas" command.
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: Run as normal user

Post by spoon0042 »

It looks like staging 6.3 includes a new patchset addressing this issue. I was able to start the whatsapp installer as is (no 'runas' or other hacks needed).

er. The notes imply it's still experimental and they may want to see what breaks, however
I'm adding this patch to wine-staging in order to smoke out any applications that might be broken, as it's still a very risky patch.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Run as normal user

Post by Bob Wya »

spoon0042 wrote: Sun Feb 28, 2021 7:29 pm It looks like staging 6.3 includes a new patchset addressing this issue. I was able to start the whatsapp installer as is (no 'runas' or other hacks needed).

er. The notes imply it's still experimental and they may want to see what breaks, however
I'm adding this patch to wine-staging in order to smoke out any applications that might be broken, as it's still a very risky patch.
@spoon0042

FYI It's not a new Staging patchset...

The advapi32-Token_Integrity_Level patchset broke at some-point in the Wine 5.x release cycle.

See: WineHQ Bug 40613 - Multiple applications require UAC implementation to run installer/app as a normal user instead of administrator (WhatsApp Desktop, Smartflix, Squirrel Installers, OneDrive)

Bob
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: Run as normal user

Post by spoon0042 »

I was looking at [Bug 39262] DiscordSetup.exe (.NET 4.5.2 app): Squirrell installer requires being run as unelevated process ('explorer.exe' should run unelevated by default with Vista+ setting)

...which points to https://github.com/wine-staging/wine-st ... _integrity

I guess I could have quoted the whole commit message, if I read it right it's replacing that other patchset (or allowing it to work again?)
server-default_integrity: New patch set.

This patch set, as an alternative approach to advapi32-Token_Integrity_Level,
creates all processes as a limited administrator by default. This doesn't
actually seem to break most applications, apparently since they assume that
their manifest is enough to force them to run as administrator and don't bother
verifying that's what they get, and since we don't actually prevent accessing
low-integrity objects. I'm adding this patch to wine-staging in order to smoke
out any applications that might be broken, as it's still a very risky patch.
Anyway, documentation is good. :)
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Run as normal user

Post by Bob Wya »

@spoon0042

Thanks for clarifying this!
I thought ZF might need to refactor this patchset (following the breakage). 8)

Bob
Locked