简体   繁体   English

Windows在无头构建期间挂起

[英]Windows hangs during headless build

We are trying to automate a build of one of our products which includes a step where it packages some things with WISE. 我们正在尝试自动构建我们的一个产品,其中包括使用WISE打包一些东西的步骤。 At one point WISE pops up a window with a progress bar on it to show how it is doing. 有一次WISE弹出一个窗口,上面有一个进度条,以显示它是如何做的。 If one is connected to the machine with remote desktop the build works fine but if one is not connected the build stalls until you reconnect at which point the window opens and the build progresses. 如果一个连接到具有远程桌面的计算机,则构建工作正常但如果未连接,则构建会停止,直到您重新连接,此时窗口打开并且构建进行。 Does anybody know of a work around for this? 有人知道这方面的工作吗? Some way of tricking windows into believing that there is a desktop session connected? 某种方式诱使窗户相信桌面会话已连接?

Sorry for yet another guess - but I had a problem with a wise installer locking up. 很抱歉还有另一个猜测 - 但我遇到了明智的安装程序锁定问题。 It was because WISE had installed a "font" and so broadcast a "system config changed" message. 这是因为WISE安装了“字体”,因此播放了“系统配置已更改”消息。 My DELL had a Dell utility running on it that had a message queue it wasn't reading from so the broadcast locked up the installer. 我的DELL上运行了一个戴尔实用程序,它有一个它没有读取的消息队列,所以广播锁定了安装程序。 WISE made a new version for me that did an async broadcast instead to fix the problem. WISE为我制作了一个新版本,它做了异步广播而不是修复问题。 It's possible that there's an app on your system that doesn't bother reading its msg queue when there is no desktop. 您的系统上有一个应用程序可能在没有桌面时无需读取其msg队列。

Finally the answer: check you have the latest patches for your WISE installer. 最后答案:检查您的WISE安装程序的最新补丁。 In particular, look for patches that fix lock-ups related to the windowing system. 特别是,寻找修复与窗口系统相关的锁定的补丁。

What version are you using? 你用的是什么版本? Looking at the feature set, it looks like their "std" version might be limited. 查看功能集,看起来他们的“std”版本可能会受到限制。 Perhaps unattended installs require the Pro version? 也许无人值守的安装需要Pro版本? That's just a guess.... 这只是一个猜测....

Regardless, I wonder whether you could simply code up an auto-run task for the box that calls 无论如何,我想知道你是否可以简单地为调用的盒子编写一个自动运行的任务
CreateDesktop to pretend there's an interactive login? CreateDesktop假装有一个交互式登录?

I found a CreateDesktop example that's about desktop switching, and an example about unattended installs -- you might be able to use one of them as a starting point to "fake out" WISE :) 我找到了一个关于桌面切换的CreateDesktop示例 ,以及一个关于无人参与安装的示例 - 您可以使用其中一个作为“伪造”WISE的起点:)

It might be worth a try... 可能值得一试......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM