【问题标题】:COSMOS - Operating System Development - Error Setup Did Not Start?COSMOS - 操作系统开发 - 错误设置没有开始?
【发布时间】:2014-07-12 01:52:56
【问题描述】:

由于开始更频繁地使用c#,我决定开始使用COSMOS开发工具包。可以找到该项目的链接here

但是,我已经阅读了有关如何在 vs 2013 中使用 COSMOS 的教程。一切都很顺利,直到安装程序给了我以下错误:

即使我完全按照开发人员制定的说明进行操作,COSMOS 和其他自设置开发套件都不适合我!

有人知道如何解决这个错误吗?

编辑:我在 Windows 7 SP1 上,我使用 Visual Studio 2013(如果 vs 2013 不够清楚)并且我有所有必需的先决条件正常运行(如果“我遵循开发人员设置的确切说明”是不够清楚)。我有一个 64 位版本的 Windows 和 Visual Studio,尽管这看起来很令人惊讶,但它运行在 64 位机器上。请不要因为缺乏信息而对这个问题投反对票 - 图片和本段是我所拥有的关于我在 COSMOS 的环境和开发的所有信息和数据。

【问题讨论】:

  • 使用复制按钮复制错误,看看有没有有用的东西出现?
  • 它只是复制显示的错误 - 安装程序没有启动...@Bobson
  • 提供有关您的环境的更多信息。您使用的是什么版本的 Visual Studio?你在什么操作系统上运行它?您是否已安装并运行 here 列出的所有先决条件?
  • @Bobson 以防我最初的问题不够清楚(我敢肯定 - 你一定读错了或读错了),我说明了我使用的 Visual Studio 版本以及我遵循开发人员留下的确切说明 - 暗示我已遵循所有教程,包括必备软件。
  • 还有图片显示必备软件已经成功通过设置测试。

标签: c# operating-system cosmos


【解决方案1】:

如果您查看 COSMOS here 的源代码,这是当前正在运行的代码:

// This is a hack to avoid the UAC dialog on every run which can be very disturbing if you run
// the dev kit a lot.
Start(@"schtasks.exe", @"/run /tn " + Quoted("CosmosSetup"), true, false);

// Must check for start before stop, else on slow machines we exit quickly because Exit is found before
// it starts.
// Some slow user PCs take around 5 seconds to start up the task...
int xSeconds = 10;
var xTimed = DateTime.Now;
Echo("Waiting " + xSeconds + " seconds for Setup to start.");
if (WaitForStart("CosmosUserKit-" + mReleaseNo, xSeconds * 1000))
{
    throw new Exception("Setup did not start.");
}
Echo("Setup is running. " + DateTime.Now.Subtract(xTimed).ToString(@"ss\.fff"));

// Scheduler starts it an exits, but we need to wait for the setup itself to exit before proceding
Echo("Waiting for Setup to complete.");
WaitForExit("CosmosUserKit-" + mReleaseNo);

关键线(和 cmets)是:

// This is a hack to avoid the UAC dialog on every run which can be very disturbing if you run
// the dev kit a lot.
Start(@"schtasks.exe", @"/run /tn " + Quoted("CosmosSetup"), true, false);

由于某种原因,该程序没有在分配给它的 10 秒内启动,所以它被炸毁了。鉴于相关评论,我怀疑“黑客”在您的机器上失败了。

schtasks.exeTask Scheduler/run/tn 标志告诉它立即运行名为 Quoted("CosmosSetup") 的任务。我不知道那个值是什么,但我猜schtasks.exe 对你来说是失败的,因为你不是管理员。

检查系统上的事件日志是否有任何相关错误。

【讨论】:

    猜你喜欢
    • 2012-07-11
    • 2015-05-28
    • 1970-01-01
    • 2011-05-21
    • 1970-01-01
    • 1970-01-01
    • 2011-04-08
    • 1970-01-01
    • 2011-04-26
    相关资源
    最近更新 更多