为什么在提取时 sfx Sevenzipsharp '7-zip : unsupported method'? [英] Why sfx sevenzipsharp '7-zip : unsupported method' when extract?
本文介绍了为什么在提取时 sfx Sevenzipsharp '7-zip : unsupported method'?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了 hallo.7z 并使用 7zxSD_LZMA.sfx 作为模块.我认为我的配置是正确的,但在提取 sfx 时我收到
I have created hallo.7z and used 7zxSD_LZMA.sfx as module. I think my configuration is right but while extracting sfx I receive
7-zip : 不支持的方法
7-zip : unsupported method
void CreateExeFile()
{
try
{
SfxModule mdl = SfxModule.Extended;
SevenZipSfx sfx = new SevenZipSfx(mdl);
sfx.ModuleFileName = @"7zxSD_LZMA.sfx";
sfx.MakeSfx("D:\hallo.7z",
new Dictionary<string, string>
{
{ "Title", "Extract Files" },
{ "InstallPath", ProgramFilesx86() + "\ATIG Platform" },
{ "BeginPrompt", "Choose directory },
{ "CancelPrompt", "Extract Now" },
{ "OverwriteMode", "0" },
{ "GUIMode", "1" },
{ "ExtractDialogText", "Process Extract" },
{ "ExtractTitle", "Extract Files" },
{ "ErrorTitle", "Error" }
},
"D:\hallo.exe");
MessageBox.Show("Success !");
}
catch (IOException ex)
{
MessageBox.Show(this, ex.Message, Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
static string ProgramFilesx86()
{
if (8 == IntPtr.Size
|| (!String.IsNullOrEmpty(Environment.GetEnvironmentVariable("PROCESSOR_ARCHITEW6432"))))
{
return Environment.GetEnvironmentVariable("ProgramFiles(x86)");
}
return Environment.GetEnvironmentVariable("ProgramFiles");
}
7zxSD_LZMA.sfx 和 7zxSD_All 无法运行提取,因为使用了密码.
7zxSD_LZMA.sfx and 7zxSD_All can't run the extraction because used password.
推荐答案
我明白为什么会这样了.这也发生在我身上.这就是我发现的原因:此 SFX 模块不支持 LZMA2 存档,仅支持 LZMA.因此您需要将存档重建为 LZMA.
I understood why it is showing so. This happended to me too. This is the reason which I found out: This SFX module does not support LZMA2 Archives and support only LZMA. So you will need to rebuild the archive as LZMA.
问候:)
这篇关于为什么在提取时 sfx Sevenzipsharp '7-zip : unsupported method'?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文