【问题标题】:SFX Install ButtonSFX 安装按钮
【发布时间】:2015-01-16 00:18:42
【问题描述】:

我正在开发一个需要自动提取 WinRar SFX 的程序。无论如何,一旦使用进程启动exe,我是否可以以编程方式单击安装按钮?这是我到目前为止的代码。

public bool Extract()
    {
        try
        {
            Process process = new Process();
            process.StartInfo.WorkingDirectory = FilePath;
            process.StartInfo.FileName = FilePath + fileName;

            process.Start();

            process.WaitForExit();
        }
        catch (Exception)
        {
            return false;
        }

        return true;
    }

【问题讨论】:

标签: c# sfx


【解决方案1】:

您可以使用 winrar 使 sfx 静音。

Here is a link

【讨论】:

  • 我不是在制作 winrar。这是我们正在下载的文件。
  • 你需要运行它吗?您可以使用 dotnetzip 并提取它
  • 使用dotnetzip解压时有没有办法改变目录?前任。该程序在 C:/programs 中,但 exe 在 C:/Downloads 中
  • 是的,你可以,看到这个dotnetzip.herobo.com/DNZHelp/html/…
猜你喜欢
  • 2022-07-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-07-13
  • 1970-01-01
  • 2018-04-28
相关资源
最近更新 更多