【问题标题】:Running exe files with Hudson on Windows 8在 Windows 8 上使用 Hudson 运行 exe 文件
【发布时间】:2014-06-09 17:50:26
【问题描述】:

我正在尝试让 Hudson 作业在 Windows 8 VM 上运行 Windows 可执行文件。当我尝试运行 exe 文件时,出现错误: java.io.IOException: Cannot run program "C:\hudson\workspace\workspaceName\installer\bin\fileToExecute.exe": CreateProcess error=740, The requested operation requires elevation

有没有人遇到这个并让它自动运行?我不能只在 VM 上拥有 exe 文件并设置其权限,因为在每次构建开始时都会下载一个新副本。

提前致谢。

【问题讨论】:

    标签: java windows hudson


    【解决方案1】:

    免责声明:我没有在 Windows 8 上尝试过。

    首先,即使您成功地从 Hudson/Jenkins 启动了一个 .exe 应用程序,它也会在不同的会话下运行,您可能看不到它。我已经设法使用PsExec 解决了这个问题,详情如下:

    Open Excel on Jenkins CI

    通过上述方法,您将能够启动应用程序并在登录会话中实际看到它

    如果您的应用程序确实出于某种原因需要提升权限,您必须将 -h 开关添加到 PsExec

    【讨论】:

      猜你喜欢
      • 2015-12-25
      • 1970-01-01
      • 2011-03-12
      • 1970-01-01
      • 2020-08-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多