2 Feb
2026
2 Feb
'26
6:17 a.m.
On Mon Feb 2 11:36:56 2026 +0000, Yaroslav Osipov wrote:
Thank you! I found the next solution: ```sh echo 'start /wait /b msiexec /p some.msi INSTALLDIR="C:\Path with spaces\data" & exit !errorlevel!' | wine cmd /v:on MSIEXEC_ERRORCODE=$? ``` "`/v:on`" functions similar to `SETLOCAL EnableDelayedExpansion`, so `exit !errorlevel!` will exit with the error code of msiexec. hmm looks like a bug in cmd.exe implementation. quick tests on win10 show that native cmd.exe's exit code (from a process point of view) is latest errorlevel
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9943#note_128539