http://bugs.winehq.org/show_bug.cgi?id=35134
Bug ID: 35134 Summary: Shroud of the Avatar: Forsaken Virtues installer waits indefinitely for cmd.exe during execution of batch files (argv[0] is not 'cmd.exe') Product: Wine Version: 1.7.8 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: cmd Assignee: wine-bugs@winehq.org Reporter: focht@gmx.net Classification: Unclassified
Hello folks,
the unwrapped installer spawns 'cmd.exe' to execute some batch files. CreateProcessAsUserW() is used which just passes appname and cmdline to CreateProcessW().
'appname' -> "C:\windows\system32\cmd.exe" 'cmdline' -> "/C "C:\users\focht\Temp\{3CD9F337-4F1D-41C4-A1E4-86453C48EDC4}.bat""
--- snip --- $ WINEDEBUG=+tid,+seh,+relay,+cmd wine ./SotAInstaller.exe >>log.txt 2>&1 ... 0024:Call KERNEL32.CreateProcessW(001481f8 L"C:\windows\system32\msiexec.exe",001483f8 L" /i "C:\users\focht\Application Data\Portalarium\Shroud of the Avatar 0.1.0\install\8E829DF\ShroudPatchClientInstaller.msi" AI_SETUPEXEPATH="Z:\home\focht\Downloads\SotAInstaller.exe" SETUPEXEDIR="Z:\home\focht\Downloads\" EXE_CMD_LINE="/exenoupdates /exelang 0 /noprereqs ",00000000,00000000,00000000,00000020,00000000,00000000,0033f8d0,0033f918) ret=0040f458 ... 002b:Call KERNEL32.__wine_kernel_init() ret=7bc599ec 0024:Ret KERNEL32.CreateProcessW() retval=00000001 ret=0040f458 ... 0039:Call advapi32.CreateProcessAsUserW(000000dc,00b54e98 L"C:\windows\system32\cmd.exe",00b55388 L"/C "C:\users\focht\Temp\{3CD9F337-4F1D-41C4-A1E4-86453C48EDC4}.bat"",00000000,00000000,00000001,08000000,00000000,00000000,00d5dc18,00d5dca8) ret=0051c6ab 0039:fixme:advapi:CreateProcessAsUserW 0xdc L"C:\windows\system32\cmd.exe" L"/C "C:\users\focht\Temp\{3CD9F337-4F1D-41C4-A1E4-86453C48EDC4}.bat"" (nil) (nil) 1 0x08000000 (nil) (null) 0xd5dc18 0xd5dca8 - semi- stub ... 003b:Call KERNEL32.__wine_kernel_init() ret=7bc599ec 0039:Ret advapi32.CreateProcessAsUserW() retval=00000001 ret=0051c6ab 0039:Call KERNEL32.OpenProcess(00100000,00000000,0000003a) ret=0051c6d9 0039:Ret KERNEL32.OpenProcess() retval=000000e0 ret=0051c6d9 0039:Call KERNEL32.WaitForSingleObject(000000e0,ffffffff) ret=0051c6e8 ... 003b:Starting process L"C:\windows\system32\cmd.exe" (entryproc=0x7ed07208) ... 003b:trace:cmd:wmain Full commandline 'L"/C "C:\users\focht\Temp\{3CD9F337-4F1D-41C4-A1E4-86453C48EDC4}.bat""' 003b:trace:cmd:wmain Command line parm: 'L""C:\users\focht\Temp\{3CD9F337-4F1D-41C4-A1E4-86453C48EDC4}.bat""' ... 003b:trace:cmd:wmain Set L"=Z:" to L"Z:\home\focht\Downloads" ... 003b:Call KERNEL32.WriteFile(00000010,00129540,00000024,0033ab10,00000000) ret=7ed0063d Microsoft Windows 5.1.2600 (1.7.8) ... 003b:Call KERNEL32.WriteFile(00000010,00129540,0000001a,0033a4d0,00000000) ret=7ed0063d
Z:\home\focht\Downloads> ... --- snip ---
For whatever reason 'cmd' expects the first argument of the command line to be the executable name. With the executable name missing from 'argv[0]', '/C' is eaten (opt_c remains FALSE) and batch execution never takes place -> hangs on console input.
Source: http://source.winehq.org/git/wine.git/blob/dd0b719a3a1419f34774fc4cd921f3378...
--- snip --- 2329 int wmain (int argc, WCHAR *argvW[]) 2330 { ... 2364 cmdLine = GetCommandLineW(); 2365 WINE_TRACE("Full commandline '%s'\n", wine_dbgstr_w(cmdLine)); 2366 args = 1; /* start at first arg, skipping cmd.exe itself */ ... --- snip ---
$ sha1sum SotAInstaller.exe 5163cd5d92cb6c8a50e5b8169ca428afdf2b76b7 SotAInstaller.exe
$du -sh SotAInstaller.exe 12M SotAInstaller.exe
$ wine --version wine-1.7.8-220-g0bef543
Regards
http://bugs.winehq.org/show_bug.cgi?id=35134
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, Installer URL| |http://goo.gl/KVYzpF
http://bugs.winehq.org/show_bug.cgi?id=35134
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Shroud of the Avatar: |Multiple game installers |Forsaken Virtues installer |wait indefinitely for |waits indefinitely for |cmd.exe during execution of |cmd.exe during execution of |batch files (argv[0] is not |batch files (argv[0] is not |'cmd.exe') (Shroud of the |'cmd.exe') |Avatar: Forsaken Virtues, | |Aura Kingdom)
--- Comment #1 from Anastasius Focht focht@gmx.net --- Hello folks,
'Aura Kingdom' installer bootstrapper (http://aurakingdom.aeriagames.com/) also suffers from this bug.
Prerequisite: 'winetricks -q dotnet40' in 32-bit WINEPREFIX
--- snip --- fixme:advapi:CreateProcessAsUserW 0xd8 L"C:\windows\system32\cmd.exe" L"/C "C:\users\focht\Temp\{7734D62D-8AF0-4686-83E1-A5984A88C914}.bat"" (nil) (nil) 1 0x08000000 (nil) (null) 0xd9ddcc 0xd9de18 - semi- stub Microsoft Windows 5.1.2600 (1.7.10)
C:\AeriaGames\Downloader> --- snip ---
$ sha1sum aurakingdom_us_downloader.exe b31bb993d30e87f59b6c211bacd49eb610075f8a aurakingdom_us_downloader.exe
$ du -sh aurakingdom_us_downloader.exe 572K aurakingdom_us_downloader.exe
$ wine --version wine-1.7.10-298-g9a14caa
Regards
http://bugs.winehq.org/show_bug.cgi?id=35134
Ian iyeru42@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |iyeru42@gmail.com
--- Comment #2 from Ian iyeru42@gmail.com --- Aura Kingdom uses Pando Media Booster, so that's why it has that problem:
http://bugs.winehq.org/show_bug.cgi?id=22152
http://bugs.winehq.org/show_bug.cgi?id=35134
--- Comment #3 from Ian iyeru42@gmail.com --- (In reply to Ian from comment #2)
Aura Kingdom uses Pando Media Booster, so that's why it has that problem:
Use this download instead: http://www.mediafire.com/download/v8l2cs5jzzfpe3z/AuraKingdomInstaller.torre...
http://bugs.winehq.org/show_bug.cgi?id=35134
--- Comment #4 from Anastasius Focht focht@gmx.net --- Hello Ian,
thanks, but I'm not interested in working installers.
Pando Media Booster bug 22152 targets a different problem (multi-threaded gc heap) which has nothing to do with this bug.
Regards
https://bugs.winehq.org/show_bug.cgi?id=35134
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |leslie_alistair@hotmail.com
http://bugs.winehq.org/show_bug.cgi?id=35134
Qian Hong fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.winehq.org/show | |_bug.cgi?id=30208
https://bugs.winehq.org/show_bug.cgi?id=35134
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |213b244cb5d98a27478252deaf5 | |7c2685a3d71a2 Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #5 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Fixed by http://source.winehq.org/git/wine.git/?a=commit;h=213b244cb5d98a27478252deaf...
https://bugs.winehq.org/show_bug.cgi?id=35134
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.27.
https://bugs.winehq.org/show_bug.cgi?id=35134
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://goo.gl/KVYzpF |https://web.archive.org/web | |/20131211222033/https://d2s | |x9mrt4zumaq.cloudfront.net/ | |wp-content/uploads/2013/12/ | |SotAInstaller.exe
--- Comment #7 from Anastasius Focht focht@gmx.net --- Hello folks,
adding stable download link via Internet Archive for documentation.
https://web.archive.org/web/20131211222033/https://d2sx9mrt4zumaq.cloudfront...
https://www.virustotal.com/gui/file/64fd175df5d016541865cfd7331f3c01e89b661a...
$ sha1sum SotAInstaller.exe 5163cd5d92cb6c8a50e5b8169ca428afdf2b76b7 SotAInstaller.exe
$ du -sh SotAInstaller.exe 12M SotAInstaller.exe
Regards