Extract .cab file in C#

后端 未结 3 1200
说谎
说谎 2021-01-07 04:24

I am developing a c# application and I a need to extract a cab file.

I couldn\'t find a library that does that in C# ) I cannot use Microsoft.Deployment.Compression.

3条回答
  •  礼貌的吻别
    2021-01-07 05:02

    Memory leak in the accepted answer. method: private IntPtr OutputFileClose(NativeMethods.FdiNotification fdin)

    should call: GCHandle.FromIntPtr(fdin.hf).Free();

提交回复
热议问题