26 Jan
2026
26 Jan
'26
3:54 a.m.
One small, but sometimes critical, issue that you cannot receive exit code other than "0" from `cmd msiexec` because, as far as I understand, `cmd` ends immediately, without waiting for the spawned subprocess.
that's normal behavior for cmd not no wait for a program in windows subsystem (which msiexec is) (untested) this may do what you expect (wait for program termination and return msiexec exit code) `echo 'start /wait /b msiexec /i some.msi INSTALLDIR="C:\Path with spaces\data"' | wine cmd` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9943#note_127994