CAB Quiz

If you know much about me, you probably know that simple doesn’t excite me.  I like problems that are interesting yet tough to solve.  A year or more ago or so I decided that I really needed to know how CAB files work.  If you do much work creating CE devices you’re familiar with the frustration of trying to include some third party package in your device image, but all you have is a CAB.  So you have to find all of the files, folders registry entries and the like that the CAB creates – usually through a process of elimination.

Well I knew that a CAB file has to contain that info, and experience had told me that just unpacking the CAB gives you all of the files (though with mangled names).  So I started playing in my free time reverse engineering how they’re packed up.  Like many of my side projects, I’d tabled the project a couple months ago due to a lack of time and paying work that needed doing.  That was until this week, when I needed to combine a third-party CAB with a customer’s app to give them a single-CAB deployment.  I spent a couple days working on the tool to get it to generate an INF file that was compatible with CABWIZ.  And that brings us to the quiz.  The following is an output from the tool – right from the source 3rd party CAB.  If I run this and the files into CABWIZ I get the came CAB back out that installs on the device as expected.  Any guess on what the CAB is (yes it’s so easy it’s a rhetorical question)?

; +————————————————-+
; | INF Generated by OpenNETCF CABConstructor       |
; | visit for product info |
; +————————————————-+

Signature=”$Windows NT$”
CESignature=”$Windows CE$”

AppName=”.NET CF 2.0″





Destination3=0,”%CE2%.NET CF 2.0″





4 thoughts on “CAB Quiz”

  1. I haven’t been able to find CABConstructor on the OpenNetCF .org or .com site. Does that mean it’s not available? All I really want to do is read the source file location of the shortcuts created by the cab. Any tips on reading the information from the CAB file?


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s