java安装cab破损,WCELOAD无法安装压缩的CAB文件
Microsoft.Deployment.Compression.Cab.dll 使用的打包程序是系統文件 cabinet.dll 的托管包裝程序,它支持MSZIP算法 . 由于MS-RL對我的項目沒有問題,我下載了WIX sources并修改了CAB壓縮庫,如下所示:
CompressionLevel.cs
public enum CompressionLevel
{
/// Do not compress files, only store.
None = 0,
/// Minimum compression; fastest.
Min = 1,
/// A compromize between speed and compression efficiency.
Normal = 6,
/// Maximum compression; slowest.
Max = 10,
/// Compress files using the MSZIP algorithm.
MsZip = 11
}
CabPacker.cs
private static NativeMethods.FCI.TCOMP GetCompressionType(CompressionLevel compLevel)
{
if (compLevel == CompressionLevel.MsZip)
{
return NativeMethods.FCI.TCOMP.TYPE_MSZIP;
}
else
{
// existing code goes here
}
}
使用MSZIP算法壓縮,WCELOAD會毫無問題地安裝生成的CAB文件 .
總結
以上是生活随笔為你收集整理的java安装cab破损,WCELOAD无法安装压缩的CAB文件的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: php进程守护进程,php 多进程实现守
- 下一篇: graphicsmagick im4ja