How to run a installer as a user not administrator with wine-staging?

Questions about Wine on Linux
Post Reply
teamremia
Level 1
Level 1
Posts: 5
Joined: Sat Oct 10, 2020 9:20 pm

How to run a installer as a user not administrator with wine-staging?

Post by teamremia » Sat Oct 10, 2020 9:36 pm

version : wine-5.19(staging)
installer : OpenLiveWriterSetup.exe

When I executed above installer, the installer aborted with the message 'run as a user , not with administrator previledge.'
I know normally wine only executes an application with administrator previledge.

So I entered as below :
'$ wine runas / trustlevel: 0x20000 OpenLiveWriterSetup.exe'

but wine claimed as below :
'0024:err:module:process_init L"C:\\windows\\system32\\runas.exe" not found'

I don't know why my wine-staging rejects the 'runas' option. It there anyone who know how to fix it?

spoon0042
Level 5
Level 5
Posts: 383
Joined: Thu Dec 24, 2009 11:00 am

Re: How to run a installer as a user not administrator with wine-staging?

Post by spoon0042 » Sun Oct 11, 2020 7:43 pm

I think there shouldn't be spaces there, you want /trustlevel:0x20000
Which may not help; are you sure you're running 5.19-staging? Depending on your system and what you've installed you may need to use the full path (/opt/wine-staging/bin/wine) otherwise you'll get some other version that is installed as the "default" wine. 'wine --version' is easy to check.

teamremia
Level 1
Level 1
Posts: 5
Joined: Sat Oct 10, 2020 9:20 pm

Re: How to run a installer as a user not administrator with wine-staging?

Post by teamremia » Thu Oct 15, 2020 5:55 am

>are you sure you're running 5.19-staging?
$ wine --version
wine-5.19 (Staging)
$ sudo apt-show-versions wine-staging
wine-staging:amd64/focal 5.19~focal uptodate
wine-staging:i386 not installed
$ sudo apt-show-versions winehq-staging
winehq-staging:amd64/focal 5.19~focal uptodate
winehq-staging:i386 not installed

I think I'm using wine-staging version 5.19.

>I think there shouldn't be spaces there, you want /trustlevel:0x20000
okay, I removed a whitespace between '/trustlevel:' and '0x20000'.

After updating wine related packages several times, 'runas' finally started to perform.
But the OpenLiveWriterSetup.exe didn't start and wine aborted with error messages below :
-----
Unhandled exception: unimplemented function ntdll.dll.__wine_create_default_token called in 32-bit code (0x7bc2ded8).
Register dump:
CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
EIP:7bc2ded8 ESP:0061fde8 EBP:00183498 EFLAGS:00000206( - -- I - -P- )
EAX:00406332 EBX:0061fdf4 ECX:0061fe60 EDX:00000001
ESI:001835c0 EDI:001835c0
Stack dump:
0x0061fde8: 0061fe18 7eb0a443 0000027f 80000100
0x0061fdf8: 00000001 00000000 7bc2ded8 00000002
0x0061fe08: 00406504 00406332 00000000 0061fe30
0x0061fe18: 0061fe48 7eb0a4c2 00000000 00000000
0x0061fe28: 00000000 7eb0a4c2 001835b0 00000000
0x0061fe38: 00000000 00000000 00000001 0061fe60
Backtrace:
=>0 0x7bc2ded8 EntryPoint+0xffffffff() in ntdll (0x00183498)
1 0x0022000f (0x00183498)
2 0x00183598 (0x0018355c)
3 0x0077005c (0x003a0043)
0x7bc2ded8 EntryPoint+0xffffffff in ntdll: subl $4,%esp
Modules:
Module Address Debug info Name (32 modules)
PE 400000- 418000 Deferred runas

spoon0042
Level 5
Level 5
Posts: 383
Joined: Thu Dec 24, 2009 11:00 am

Re: How to run a installer as a user not administrator with wine-staging?

Post by spoon0042 » Thu Oct 15, 2020 4:50 pm

That, uh, really shouldn't happen. Just to be sure can you post the output of 'dpkg -l wine\*'

teamremia
Level 1
Level 1
Posts: 5
Joined: Sat Oct 10, 2020 9:20 pm

Re: How to run a installer as a user not administrator with wine-staging?

Post by teamremia » Fri Oct 16, 2020 10:46 am

>Just to be sure can you post the output of 'dpkg -l wine\*'
okay, the output is below:
-----
$ env LANG=en_US.UTF-8 dpkg -l wine\*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-======================-============-============-==================================================
un wine <none> <none> (no description available)
un wine-amd64 <none> <none> (no description available)
un wine-i386 <none> <none> (no description available)
ii wine-staging 5.19~focal amd64 WINE Is Not An Emulator - runs MS Windows programs
ii wine-staging-amd64 5.19~focal amd64 WINE Is Not An Emulator - runs MS Windows programs
ii wine-staging-i386:i386 5.19~focal i386 WINE Is Not An Emulator - runs MS Windows programs
un wine1.4 <none> <none> (no description available)
un wine1.4-amd64 <none> <none> (no description available)
un wine1.4-i386 <none> <none> (no description available)
un wine1.5 <none> <none> (no description available)
un wine1.5-amd64 <none> <none> (no description available)
un wine1.5-i386 <none> <none> (no description available)
un wine1.6 <none> <none> (no description available)
un wine1.6-amd64 <none> <none> (no description available)
un wine1.6-i386 <none> <none> (no description available)
un wine1.7 <none> <none> (no description available)
un wine1.7-amd64 <none> <none> (no description available)
un wine1.7-i386 <none> <none> (no description available)
ii wine32:i386 5.0-3ubuntu1 i386 Windows API implementation - 32-bit binary loader
un wine32-development <none> <none> (no description available)
un wine32-preloader <none> <none> (no description available)
un wine64 <none> <none> (no description available)
un wine64-development <none> <none> (no description available)
ii winehq-staging 5.19~focal amd64 WINE Is Not An Emulator - runs MS Windows programs

spoon0042
Level 5
Level 5
Posts: 383
Joined: Thu Dec 24, 2009 11:00 am

Re: How to run a installer as a user not administrator with wine-staging?

Post by spoon0042 » Fri Oct 16, 2020 8:17 pm

hm. You can uninstall wine32:i386 if you want but that's most likely irrelevant. I had a look and 'runas' doesn't seem to be included in recent wine-staging packages. I don't know if that's intentional and for the moment the only advice I have is to try an older version if it was working before?

e: It looks like 5.15 staging is the last version that includes runas, though that might be broken somehow? Relevant bug here: https://bugs.winehq.org/show_bug.cgi?id=40613

teamremia
Level 1
Level 1
Posts: 5
Joined: Sat Oct 10, 2020 9:20 pm

Re: How to run a installer as a user not administrator with wine-staging?

Post by teamremia » Sat Oct 17, 2020 4:49 am

I've read the 'runas bug' thread(thanks spoon0042).

OpenLiveWriter requires '.Net Framework' later than 4.62 and it is a gui networking application.
I don't know if a '.Net Framework' application which uses gui feature can work with wine or not.
Because I've never seen a working '.Net Framework' gui application with wine.
One or two years ago, I tried to install OpenLiveWriter.exe but at that time, it could be installed but never be opened(ran) properly.
So I need as newer version of wine as possible since I think newest version has more possibility that it can handle a gui application of '.Net Framework'.

It seems that currently the only way to resolve the issue is 'runas' bug will be fixed and included in wine again.

spoon0042
Level 5
Level 5
Posts: 383
Joined: Thu Dec 24, 2009 11:00 am

Re: How to run a installer as a user not administrator with wine-staging?

Post by spoon0042 » Sat Oct 17, 2020 6:01 pm

wine actually can run .net programs, either with the free 'mono' implementation that should install automatically, or with the native Microsoft .net installed with winetricks. There were some bugs recently though with the native route and I'd hate to send you into a long frustrating rabbit hole. May be easier to wait and see if the 'runas' issue gets resolved.

teamremia
Level 1
Level 1
Posts: 5
Joined: Sat Oct 10, 2020 9:20 pm

Re: How to run a installer as a user not administrator with wine-staging?

Post by teamremia » Sun Oct 18, 2020 12:59 am

>May be easier to wait and see if the 'runas' issue gets resolved.
Yeah, I think so. Hope someone in the wine developer is working on it...

Post Reply