0

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?

ctacke
  • 66,480
  • 18
  • 94
  • 155
janneob
  • 959
  • 2
  • 11
  • 25

1 Answers1

2

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:

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

ctacke
  • 66,480
  • 18
  • 94
  • 155
  • because it will be a lot easier for me. I'm creating the CAB file every release for updates, so for me, in order to change the release image I will only need to change the CAB file. – janneob Feb 22 '12 at 15:10
  • If I would like to create a BIB file for this work, where should I start? (I never worked with bib files before) – janneob Feb 22 '12 at 15:38
  • I had to remove the project that contained the CAB file and when i added him again the final image does not contain the CAB. i checked the ce.bib and i don't see there the cab file, its line he don't include the myProject.bib file. I have the file in the release folder. do you have any idea what i have done wrong? – janneob Mar 07 '12 at 10:00
  • Having the file in the release folder isn't enough. You must add an entry for it to one of the BIB files manually. The source location can be anywhere (doesn't have to be in the release directory) – ctacke Mar 07 '12 at 15:39
  • I have added the file to the project bib file. I have tried sysgen, build current bsp and subprojects, make run time image and I still have no effect. Maybe I need to build something else? – janneob Mar 08 '12 at 08:06
  • 1
    *Which* project.bib file did you qadd it to? You have to add it to the original (in FILES), then copy that one to the FLATRELEASEDIR and makeimg again. makeimg doesn't copy the FILES over automatically, and if you're modifying the BIB in the release directory, it gets overwritten on SYSGEN when the copy does happen. Bottom line, check ce.bib to see if it's getting copied. If not, you've made a mistake - likely in which file you modified or a failure to copy to the release directory. – ctacke Mar 08 '12 at 14:15