问题
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.
Can you help me?
回答1:
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?
EDIT
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 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
.
Some worthwhile reading:
- 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
来源:https://stackoverflow.com/questions/9394882/add-cab-file-to-the-os-design