Create Windows CE cab files which install a complete directory structure onto a device. I created this small tool as I needed an easy to use tool to create a pseudo installation cab.
The DLL will unzip an archive file with all dirs onto a device. To build a new cab, use the directory structure you will find below cabdir.
Create Your Own Install
First cleanup all files below cabdir\source. Then place all files into this directory as they should be unpacked onto the device. For example, for an application called
barcodegame, I created the following structure below the source:
Then let cabbuild.bat create a new archive with all files and then a cab with this packed file. For example, change to the cabdir (
cd cabdir) and then launch:
The batch file will patch an INF file needed for cabwiz and zip all files below the source. The batch will also patch the file SetupDll_zip2.ini.tmpl which is used to specify the install location and the zip filename:
;directory values have to end with a \
The unzip directory could also be controlled by the registry but the INI file is looked up first.
If you like to control the unzip by the registry, you have to change the template file “cabtemplate.inf” and use these settings:
registry entries (all REG_SZ):
Currently the batch and everything is adjusted to work with the INI template file “SetupDll_zip2.ini.tmpl”.
- The INI and INF template files are patched using the GNU tool sed.
- The zip file is created with 7za
- The cab is created with the Microsoft SDK tool cabwiz.
- The setupdll is written with the help of iniutil.cpp/h and unzip.cpp/h
- Windows native API
CreateWindow from DLL
- Read INI files on Windows CE
- Unzip file on Windows Mobile
- Update window from thread
Advantages and Disadvantages
- No national windows support. No shellfolders
- Very easy to use
<!-- Social Bookmarks BEGIN -->
<!-- Social Bookmarks END -->