Jenkins无法运行EXE安装程序
创建的Jenkins作业以运行我的应用程序的无声安装,应用程序安装程序是EXE文件。
- 尝试使用Windows Exe Runner -setup.exe /s
- 尝试使用PowerShell作业 - setup.exe /s
在这两种情况下,我都会遇到相同的问题:
system.invalidoperationException:当应用程序未在用户互动中运行时,显示模态对话框或表单模式不是有效的操作。指定ServiceNotification或DefaultDesktoponly样式,以显示服务应用程序的通知。
如果我从PS运行的机器上手动运行命令,则将默默地安装我的应用程序,而不会出错。
假设服务器计算机上的Jenkins特权是问题,Jenkins是使用Admin凭据作为服务运行的。
Created Jenkins job to run silent installation of my application, the application installer is exe file.
- tried with Windows Exe Runner - setup.exe /s
- tried with PowerShell job - - setup.exe /s
In both cases I get the same issue:
System.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
If I run the command manually on the machine from PS run as administrator it will silently install my application in the background without errors.
Suppose it is problem with Jenkins privileges on the server machine, Jenkins is run as a service using Admin credentials.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论