Groups | Blog | Home
all groups > dotnet compact framework > july 2007 >

dotnet compact framework : Deployment: Packaging .Net CF with installer


ctacke/
7/18/2007 6:30:35 AM
[quoted text, click to view]

All WM devices are ARM architecture, so that's easy.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com


cyberco
7/18/2007 11:20:51 AM
I want to distribute my application but although I've done quite some
Googling I'm a little lost how to solve the following issues:

- I want 1 installer for all all WM 5 PPC devices (all processor
architectures)
- I want to detect if the device has .Net CF 2 and if not, install it
automatically

I would be gratefull for pointers to relevant documentation.
Christian Resma Helle
7/23/2007 12:00:00 AM
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


--
Regards,
Christian Resma Helle
http://christian-helle.blogspot.com


[quoted text, click to view]

Jenson
7/23/2007 1:18:04 AM
Hi ctacke,

I'm having similar problem too and I would like to know how can I package my
windows CE application into CAB files in VS 2005.

Would appreciate if you can provide any kind of helps.

Thanks.

Regards,
Jenson


--
:: Vision is Power ::


[quoted text, click to view]
Jenson
7/23/2007 2:28:00 AM
Hi Christian,

Thanks for the reply. BTW, is it possible to install from within the device
itself instead of going through the Desktop of our PCs?

Thanks.

Regards,
Jenson
--
:: Vision is Power ::


[quoted text, click to view]
Christian Resma Helle
7/23/2007 12:39:35 PM
Hi Jensen,

You can publish your CAB file to some publicly accessible web server and
have it downloaded to the device. Installing it on the device from then on
is just a matter of clicking on the CAB file in the File Explorer

--
Regards,
Christian Resma Helle
http://christian-helle.blogspot.com


[quoted text, click to view]

Jenson
7/23/2007 6:36:02 PM
Hi Christian,

Thanks for the reply. I also just notice that, but never thought of
connecting to the Internet and download the CAB file from there. It would be
great for any future updates or amendments for the application. But the
device that I'm developing on is quite restrictive and debugging only can be
done on the device, in that sense, the device must be connected to the
workstation PC or notebook, which is quite troublesome =(

Meanwhile, I also include the database inside the CAB file, but it become
about 10MB+ which I think would require deletion of file upon completing the
installation.

Christian, you have been providing great helps to me whenever I need one!
Thanks a million!!!

Thanks.

Regards,
Jenson
--
:: Vision is Power ::


[quoted text, click to view]
AddThis Social Bookmark Button