https://bugs.winehq.org/show_bug.cgi?id=39906
Bug ID: 39906 Summary: ODB++ Viewer fails to install due to improper bat file handling (quoting or delimiting problem) Product: Wine Version: 1.8 Hardware: x86 URL: http://www.odb-sa.com/resources/odb-viewer/ OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: cmd Assignee: wine-bugs@winehq.org Reporter: jhansonxi@gmail.com Distribution: Ubuntu
Xubutnu 14.04 x86_64, AMD Phenom 9550, GeForce GTX 750Ti with Nvidia 340.96 driver. Wine 1.8 (git) Mentor Graphics ODB++ Viewer 9.6 (32 or 64-bit)
During installation it attempts to execute several *.bat files but they fail. According to install log (…/drive_c/MentorGraphics/Install/LOGS/):
Can't recognize 'C:\MentorGraphics\Valor\ODB++_Viewer\odbviewer_96\install\a_UpdateFiles.bat" -target "C:\MentorGraphics\Valor\ODB++_Viewer\odbviewer_96" -msicmd "C:\MentorGraphics\Install\bin\msi_cmd.exe" -mgchome "C:\MentorGraphics\Valor\ODB++_Viewer\odbviewer_96\MGC_HOME.ixn -vco ixn' as an internal or external command, or batch script.
Can't recognize 'C:\MentorGraphics\Valor\ODB++_Viewer\odbviewer_96\install\a_post_install.bat" -target "C:\MentorGraphics\Valor\ODB++_Viewer\odbviewer_96" -msicmd "C:\MentorGraphics\Install\bin\msi_cmd.exe" -mgchome "C:\MentorGraphics\Valor\ODB++_Viewer\odbviewer_96\MGC_HOME.ixn -vco ixn' as an internal or external command, or batch script.
Can't recognize 'C:\MentorGraphics\Valor\ODB++_Viewer\odbviewer_96\install\a_vcredist_install.bat" -target "C:\MentorGraphics\Valor\ODB++_Viewer\odbviewer_96" -msicmd "C:\MentorGraphics\Install\bin\msi_cmd.exe" -mgchome "C:\MentorGraphics\Valor\ODB++_Viewer\odbviewer_96\MGC_HOME.ixn -vco ixn' as an internal or external command, or batch script.
Can't recognize 'C:\MentorGraphics\Valor\ODB++_Viewer\odbviewer_96\install\z_AddMenuEntry.bat" -target "C:\MentorGraphics\Valor\ODB++_Viewer\odbviewer_96" -msicmd "C:\MentorGraphics\Install\bin\msi_cmd.exe" -mgchome "C:\MentorGraphics\Valor\ODB++_Viewer\odbviewer_96\MGC_HOME.ixn -vco ixn' as an internal or external command, or batch script.
Can't recognize 'C:\MentorGraphics\Valor\ODB++_Viewer\odbviewer_96\install\z_CreateDesktopShortcut.bat" -target "C:\MentorGraphics\Valor\ODB++_Viewer\odbviewer_96" -msicmd "C:\MentorGraphics\Install\bin\msi_cmd.exe" -mgchome "C:\MentorGraphics\Valor\ODB++_Viewer\odbviewer_96\MGC_HOME.ixn -vco ixn' as an internal or external command, or batch script.
Steps to reproduce: 1. Register (free) and download viewer. Will receive a registration key and a "odbviewer.signature" file. 2. Extract the 280MB+ zip which contains both 32-bit and 64-bit installers. 3. Place the "odbviewer.signature" file in the same directory as the chosen installer then execute the installer. Enter registration key when prompted. 4. Respond to dialogs as needed. 5. During post-install script phase several error dialogs are displayed about script failures.
Installer completes regardless but application aborts with an unhandled exception.
https://bugs.winehq.org/show_bug.cgi?id=39906
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, Installer
https://bugs.winehq.org/show_bug.cgi?id=39906
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |us@edmeades.me.uk
--- Comment #1 from Jason Edmeades us@edmeades.me.uk --- Cant reproduce the exact problem, as only v10 is for download, but the first problem is very similar... It runs for /f "usebackq" %%i in (`""%SOURCE_DIR%\odbviewer_register.exe" %REGISTRATION_KEY% "%SOURCE_DIR%\odbviewer.signature""`) do set RES=%%i
This fails in wine's cmd, passes under windows. Simple recreate: for /f "usebackq" %i in (`""c:\windows\system32\ping.exe" -?"`) do set RES=%i (On windows, loops giving first word of each line, on wine fails to launch)
I will investigate further as I get time
https://bugs.winehq.org/show_bug.cgi?id=39906
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|wine-bugs@winehq.org |us@edmeades.me.uk Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #2 from Jason Edmeades us@edmeades.me.uk --- This is caused because for /f runs cmd.exe /c "<prog>" whereas it really only needs cmd.exe /c <prog>.
https://bugs.winehq.org/show_bug.cgi?id=39906
--- Comment #3 from Jason Edmeades us@edmeades.me.uk --- https://www.winehq.org/pipermail/wine-devel/2018-August/130217.html
https://bugs.winehq.org/show_bug.cgi?id=39906
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED Fixed by SHA1| |8b6ba774c0ef5f25e1dfd314d87 | |0b16f60dce2b6
--- Comment #4 from Jason Edmeades us@edmeades.me.uk --- Committed
https://bugs.winehq.org/show_bug.cgi?id=39906
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.15.
https://bugs.winehq.org/show_bug.cgi?id=39906
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |3.0.x
https://bugs.winehq.org/show_bug.cgi?id=39906
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|3.0.x |---
--- Comment #6 from Michael Stefaniuc mstefani@winehq.org --- Removing the 3.0.x milestone from bug fixes included in 3.0.4.