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

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Mar 3 06:34:36 CST 2019


https://bugs.winehq.org/show_bug.cgi?id=40613

--- Comment #22 from Anastasius Focht <focht at gmx.net> ---
Hello tim,

--- quote ---
RUNAS don't work with start /d

...
wine runas /trustlevel:0x20000 start /d 'D:\' dzclient-1.7.85.exe
--- quote ---

you didn't quote properly hence all parameters after 'start' are interpreted as
belonging to 'runas' command.

On modern NT-based Windows, 'start' is a builtin of Windows command shell.
Wine's external 'start.exe' program is a Win9x legacy and doing more harm than
good, especially in WoW64 prefixes. I would even consider removing this - but
that will likely break many crappy scripts.

Doesn't work in 64-bit WINEPREFIX:

--- snip ---
$ wine runas /trustlevel:0x20000 "start /d c:\\ notepad"
RUNAS-Error: start /d c:\ notepad could not be started
2: File not found.
--- snip ---

Works in 64-bit WINEPREFIX:

--- snip ---
$ wine64 runas /trustlevel:0x20000 "start /d c:\\ notepad"
--- snip ---

I would suggest you use 'start' properly as 'cmd.exe' builtin which avoids the
aforementioned issues. 

--- snip ---
$ wine runas /trustlevel:0x20000 "cmd /c start /d c:\\ notepad"
--- snip ---

In your case it would be:

--- snip ---
$ wine runas /trustlevel:0x20000 "cmd /c start /d D:\\ dzclient-1.7.85.exe"
--- snip ---

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list