如何使用SevenZipSharp创建SFX ZIP? [英] How to create a SFX ZIP with SevenZipSharp?

查看:114
本文介绍了如何使用SevenZipSharp创建SFX ZIP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找SevenZipSharp来创建一个自解压的zip文件.项目页面上说,他们有一个特殊的类SevenZipSfx可以做到这一点.但是,我已经搜索了对象浏览器和0.64版的文档,但找不到任何引用.

I have been looking at SevenZipSharp to create a self extracting zip file. The project page says that they have a special class SevenZipSfx that does this. However I have searched the object explorer and the documentation for version 0.64 and I cant find any reference to it.

有人知道我是否缺少该类,或者我所缺少的特殊班级"是否有不同的含义?

Does anyone know if the class is missing or if there is a different meaning to "Special Class" that I'm missing?

推荐答案

似乎默认情况下未构建Sfx类. 从Codeplex中获取源代码(或

It looks like the Sfx class isn't built by default. Grab the source code from Codeplex (or check out the trunk code) and add conditional compile constant SFX to the project settings and rebuild. Annoyingly the signing isn't in their source control so you'll have to disable code signing for the assembly.

或者,如果这是一次性SFX,则可以使用SevenZip \ sfx目录中的文件自己构建它.如果您查看 SevenZipSfx soruce ,您会发现它只是简单地添加了一个从程序集资源中提取的文件中的一部分,保存到.7z存档中.

Alternatively if this is a one-off SFX then you can build it yourself using the files in the SevenZip\sfx directory. If you look at the SevenZipSfx soruce you'll see it simply prepends one of those files taken from the assembly resources to the .7z archive.

这篇关于如何使用SevenZipSharp创建SFX ZIP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆