https://bugs.winehq.org/show_bug.cgi?id=56558
Bug ID: 56558 Summary: cabinet:FCIAddFile: Missing support for LZX compression Product: Wine Version: 9.6 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: cabinet Assignee: wine-bugs@winehq.org Reporter: winehq@jkroepke.de Distribution: ---
The native windows implementation of cabinet:FCIAddFile supports LZX compression in addition to MSZip.
I'm trying to run https://wixtoolset.org/docs/about/ under WINE to create msi installer, however the creation fails with default settings
0144:fixme:cabinet:FCIAddFile compression 1203 not supported, defaulting to none 0144:fixme:cabinet:FCIAddFile compression 1203 not supported, defaulting to none 0144:fixme:cabinet:FCIAddFile compression 1203 not supported, defaulting to none 0144:fixme:cabinet:FCIAddFile compression 1203 not supported, defaulting to none 0144:fixme:cabinet:FCIAddFile compression 1203 not supported, defaulting to none 0144:fixme:kernelbase:AppPolicyGetProcessTerminationMethod FFFFFFFA, 0062FEB8 wix.exe : error WIX0001: WixToolset.Core.Native.WixNativeException: wixnative.exe failed with error code: -2147467259 - Invalid handle. Output: #cab1.cab #cab1.cab filPltju7VHTe0axpRG.LFcHosyVd8 Error 0x80070006: failed to compress cabinet: C:\users\wix\Temp\sadphplt.t0n#cab1.cab ---> System.ComponentModel.Win32Exception (6): Invalid handle. --- End of inner exception stack trace --- at WixToolset.Core.Native.WixNativeExe.Run() in D:\a\wix\wix\src\wix\WixToolset.Core.Native\WixNativeExe.cs:line 81 at WixToolset.Core.Native.Cabinet.Compress(IEnumerable`1 files, CompressionLevel compressionLevel, Int32 maxSize, Int32 maxThresh) in D:\a\wix\wix\src\wix\WixToolset.Core.Native\Cabinet.cs:line 60 at WixToolset.Core.WindowsInstaller.Bind.CabinetBuilder.CreateCabinet(CabinetWorkItem cabinetWorkItem) in D:\a\wix\wix\src\wix\WixToolset.Core.WindowsInstaller\Bind\CabinetBuilder.cs:line 192 at WixToolset.Core.WindowsInstaller.Bind.CabinetBuilder.ProcessWorkItems() in D:\a\wix\wix\src\wix\WixToolset.Core.WindowsInstaller\Bind\CabinetBuilder.cs:line 123
Changing the compression to mszip on the wixtoolset project resolve the issue.