Hi Jenson,
Here are some basic steps for packing your application to a CAB file in
Visual Studio 2005.
1. Add a new "Smart Device CAB Project" to your solution
2. Change the properties of the CAB project to describe the manufacturer and
product name.
3. If you target WinCE 5.0 or higher then change your OSVersionMin to 5.0
and your OSVersionMax to 6.99
4. Right click on the CAB project and go to View - Filesystem
5. In the File System View, right click on "Application Folder" and go to
Add - Primary Output
6. Add the primary output of your application
7. Add the Content Files from your application if needed
8. To make a shortcut on the "Programs Folder", you will have to right click
on "File System on Target Machine" then go to "Add Special Folder" -
"Programs Folder"
9. Once the Programs Folder is added, go to the "Application Folder", right
click on the "Primary Output..." from your application then select "Create
shortcut...."
10. Move the created shortcut to the "Programs Folder"
11. Build the CAB file and test
I normally distribute my applications in a self-extracting zip file. You can
use the CE Application Manager (comes with ActiveSync / WMDC) to install
them from the desktop to the device. Lots of documentation on using the
Application Manager is available on MSDN.
I recently wrote a short article about writting a generic multiple CAB file
installer for the desktop:
http://christian-helle.blogspot.com/2007/07/generic-multiple-cab-file-installer-for.html