http://bugs.winehq.org/show_bug.cgi?id=17124
Summary: MSYS installer doesn't pop up cmd window? Product: Wine Version: 1.1.13 Platform: Other URL: http://www.mingw.org/wiki/msys OS/Version: other Status: NEW Keywords: download, Installer, source Severity: enhancement Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: austinenglish@gmail.com
When install msys, it floods the terminal with: This is a post install process that will try to normalize betweenyour MinGW install if any as well as your previous MSYS installs if any. I don't have any traps as aborts will not hurt anything.Do you wish to continue with the post install? [yn ] pi.sh: [: ==: unary operator expectedDo you have MinGW installed? [yn ] pi.sh: [: ==: unary operator expectedWhen you install MinGW I suggest you install it to C:/mingw(replace C: with the drive of your choice). Then create an/etc/fstab file with a line that has a value similar to:C:/mingw /mingwPress ENTER to continue Normalizing your MSYS environment.You have script /bin/awkYou have script /bin/cmdYou have script /bin/echoYou have script /bin/egrepYou have script /bin/exYou have script /bin/fgrepYou have script /bin/printfYou have script /bin/pwdYou have script /bin/rviYou have script /bin/rviewYou have script /bin/rvimYou have script /bin/viYou have script /bin/viewMinGW-1.1 has a version of make.exe within it's bin/ directory.Please be sure to rename this file to mingw32-make.exe once youve echo installed MinGW-1.1 because it\s very deficient in function.Press ENTER to continue.C:\msys\1.0\postinstall>pause Press Return key to continue:
Towards the end. It looks like something that should be in a cmd prompt (haven't tested on windows yet). The line endings are also wrong, but that's another bug.
http://bugs.winehq.org/show_bug.cgi?id=17124
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- OS/Version|other |Linux Platform|Other |PC
http://bugs.winehq.org/show_bug.cgi?id=17124
Jeff Zaroyko jeffz@jeffz.name changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |normal
--- Comment #1 from Jeff Zaroyko jeffz@jeffz.name 2009-01-24 22:07:54 --- I think this affects several apps, eg. Visual Studio when you attempt to open a cmd window also doesn't create a window - you just see the output of cmd.exe on the terminal used to start wine.
http://bugs.winehq.org/show_bug.cgi?id=17124
--- Comment #2 from Austin English austinenglish@gmail.com 2010-08-26 11:36:55 --- http://downloads.sourceforge.net/mingw/MSYS-1.0.11.exe
Still in git. On windows it does pop up a new window, I'll attach a screenshot.
http://bugs.winehq.org/show_bug.cgi?id=17124
--- Comment #3 from Austin English austinenglish@gmail.com 2010-08-26 11:37:29 --- Created an attachment (id=30412) --> (http://bugs.winehq.org/attachment.cgi?id=30412) screenshot
http://bugs.winehq.org/show_bug.cgi?id=17124
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |cmd
http://bugs.winehq.org/show_bug.cgi?id=17124
Frédéric Delanoy frederic.delanoy@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |frederic.delanoy@gmail.com
--- Comment #4 from Frédéric Delanoy frederic.delanoy@gmail.com 2011-05-12 11:59:30 CDT --- Confirmed in 1.3.19. I get the following message:
This is a post install process that will try to normalize betweenyour MinGW install if any as well as your previous MSYS installs if any. I don't have any traps as aborts will not hurt anything.Do you wish to continue with the post install? [yn ]
and it does further nothing whatever you type
http://bugs.winehq.org/show_bug.cgi?id=17124
fracting fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fracting@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=17124
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |us@edmeades.me.uk
--- Comment #5 from Jason Edmeades us@edmeades.me.uk 2012-11-20 18:12:17 CST --- I started looking into this. Basically, the installer (a GUI app) calls 0024:Call
KERNEL32.CreateProcessA(00000000,00476110 "c:\msys\1.0\postinstall\pi.bat pi.sh",00000000,00000000,00000000,00000000,00000000,00478644 "c:\msys\1.0\postinstall",0033fa0c,0033f9fc) ret=00437a11
Whats interesting here is the dwCreationFlags dows not include CREATE_NEW_CONSOLE, BUT on windows you get a new console and on wine you dont. I've done some testing with a variety of combinations of cmd/GUI launching cmd/GUI launching cmd/GUI
Overall the bug seems to be that CreateProcess should do something like: - Is the program being launched flagged as a console app - If it is, see if there is a console allocated to the existing process - If there is no existing console, default to CREATE_NEW_CONSOLE for the create
Note I also tested with AllocConsole from a GUI prior to a createprocess for a console app, and as far as I could tell, the CreateProcess does not generate a new console, it uses the one Allocated to the GUI.
Now there is also a 2nd problem this bug shows, which is that when running in bare mode (ie not in wineconsole), the line endings / echoing does not work nicely - Have not looked into that at all, should be a 2nd bug once this is addressed.
http://bugs.winehq.org/show_bug.cgi?id=17124
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |leslie_alistair@hotmail.com
http://bugs.winehq.org/show_bug.cgi?id=17124
--- Comment #6 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- This patch would possible fix this issue, still more work has to be done before it will be accepted. http://www.winehq.org/pipermail/wine-patches/2014-February/130271.html
https://bugs.winehq.org/show_bug.cgi?id=17124
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #7 from super_man@post.com --- 1/2 patch doesnt apply cleanly, but 2/2 from
https://www.winehq.org/pipermail/wine-patches/2014-February/130272.html
does
wine 1.7.53(up to date git)
https://bugs.winehq.org/show_bug.cgi?id=17124
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://www.mingw.org/wiki/m |https://web.archive.org/web |sys |/20151106110522/http://netc | |ologne.dl.sourceforge.net/p | |roject/mingw/MSYS/Base/msys | |-core/msys-1.0.11/MSYS-1.0. | |11.exe Component|cmd |kernelbase CC| |focht@gmx.net Summary|MSYS installer doesn't pop |MSYS 1.0 installer doesn't |up cmd window? |create console window for | |interactive postinstall | |batch file
--- Comment #8 from Anastasius Focht focht@gmx.net --- Hello folks,
still present.
--- snip --- $ wine ./MSYS-1.0.11.exe ... c:\msys\1.0\postinstall>..\bin\sh.exe pi.sh 0066:fixme:netapi32:NetUserGetInfo Level 3 is not implemented 0066:fixme:netapi32:NetUserGetInfo Level 3 is not implemented This is a post install process that will try to normalize betweenyour MinGW install if any as well as your previous MSYS installs if any. I don't have any traps as aborts will not hurt anything.Do you wish to continue with the post install? [yn ] --- snip ---
or to better reflect the GUI scenario (Windows):
--- snip --- $ wine explorer /desktop=shell --- snip ---
Start menu 'run' -> 'browse' -> 'MSYS-1.0.11.exe' (execute)
No console window is shown at all and the installer finishes.
The patch from comment #6 was committed as https://source.winehq.org/git/wine.git/commitdiff/2005be6dc92c0943ede01525ce... ("shell32: Use CREATE_NEW_CONSOLE when SEE_MASK_NOCONSOLE is omitted.") in 2014.
$ sha1sum MSYS-1.0.11.exe 1edad9d1b67b48c92781b3ccddbd1cc9ce64d78a MSYS-1.0.11.exe
$ du -sh MSYS-1.0.11.exe 3.2M MSYS-1.0.11.exe
$ wine --version wine-5.0-rc6
Regards
https://bugs.winehq.org/show_bug.cgi?id=17124
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|kernelbase |kernel32