将 CAB 文件添加到 OS 设计 [英] Add CAB file to the OS design

查看:29
本文介绍了将 CAB 文件添加到 OS 设计的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将 CAB 文件(我的安装)添加到 OS Design 中,但我找不到这样做的方法.当操作系统第一次加载时,我需要它来自动安装程序.我说的是 win compact 7.

I need to add the CAB file (my installation) to the OS Design and I can't find a way to do that. I need it for Installing the program automatically when the OS loads for the first time. I'm talking about win compact 7.

你能帮我吗?

推荐答案

我有点困惑.为什么要将 CAB 添加到操作系统设计中并在运行时解压?如果您正在创建一个操作系统并希望它包含应用程序,为什么不直接使用 BIB 和 REG 文件(平台或项目)将应用程序的文件和注册表项放入操作系统中您首先需要的位置?

I'm a bit confused. Why would you add the CAB to the OS design and have that unpack on run? If you're creating an OS and you want it to include the app, why not just use the BIB and REG files (PLATFORM or PROJECT) to just put your app's files and registry entries into the OS where you want them in the first place?

编辑

如果您必须使用 CAB 文件(我仍然强烈建议为这项工作创建一个 BIB 文件),那么只需在您设备的 \Windows\Startup 文件夹中包含一个快捷方式(一个 BIB 和 DAT 文件对可以做到这一点)运行你的 cab 文件.快捷方式的内容如下所示:

If you must use a CAB file (and I'd still be highly recommend creating a BIB file for this work instead), then just include a shortcut in your device's \Windows\Startup folder (a BIB and DAT file pair can do that) that runs you cab file. The contents of the shortcut would look something like this:

EDIT2

BIB 文件是 Windows CE 确定哪些文件进入操作系统的方式(REG 文件类似地定义注册表项).概括地说,在 makeimg 过程中,系统中的所有 BIB 文件和您的操作系统设计都合并到一个名为 ce.bib 的文件中,然后解析该文件以生成 nk.bin.

BIB Files are the way Windows CE determines what files go into the OS (REG files similarly define registry entries). In a broad, handwaving explanation, all BIB files from the system and your OS design get coalesced into a file called ce.bib during makeimg and that file is parsed to generate the nk.bin.

值得一读:

  • Inside the Build System (old, but still valid)
  • [Binary Image Builder files
  • Using BIB files
  • Adding apps to the Start Menu (covers shortcuts, etc)

41#\windows\wceload.exe \windows\mycab.cab

41#\windows\wceload.exe \windows\mycab.cab

这篇关于将 CAB 文件添加到 OS 设计的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆