Click here to Skip to main content
Licence CPOL
First Posted 24 Feb 2006
Views 29,321
Downloads 548
Bookmarked 19 times

Pocket PC Memory Card Based Installer

By | 24 Feb 2006 | Article
A sample software installer for the Pocket PC that installs software when a memory card is inserted into the device.
Sample Image - PPC_CardInstall.png

Introduction

Installation of software on a mobile device is a trivial thing these days. Often the application is supplied with a Setup program that the user runs. I remember the first time that I installed a Pocket PC application by running a setup program from my desktop. The application installed onto the device, and afterwards I even had an entry in my Add-Remove Programs.

It almost did not make sense to me that to install software on my Pocket PC I should run a setup program on my desktop.

There is, however, a case when an installation like the one just described is not desired. That case for me is when I need to install my software on more than a single device. To handle multiple device installations without going through the process of partnering each device is the purpose of this code.

Some instances where this code could be useful are:

  • Pre-configuring 20 Pocket PC devices to ship to a customer.
  • Allowing the customer to provision multiple devices at a remote site.

Usage Scenario:

  1. Unbox a device.
  2. Charge the device.
  3. Boot the device and perform initial screen tapping until the today screen is displayed.
  4. Insert an SD Card into the device. (Device is totally configured to run my software).
  5. Turn of the device - Send device to customer.

This code is an "AutoPlay" for a memory card. The goal was to insert an SD Card into the Pocket PC device, and have the .NET 2.0 Framework installed, if not already installed, then install my program.

The program presented here was designed to meet the following base requirements:

  1. Activate when the SD Card is inserted into the device
  2. Require no network from the device
  3. Require no pre-installed software except the OS. PPC2003 SE in this instance
  4. Require no ActiveSync anything

In addition to the base requirements, the following requirements are added:

  1. Detect if the Compact Framework v2.0 is installed
  2. Install the Compact Framework v2.0 if missing
  3. Detect if my software is installed
  4. Install my software if missing
  5. Display a web page to the user at the end of the installation
  6. Write a log of actions

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

wduros1

Web Developer

United States United States

Member

I wrote my first program when I was a child - Basic on the TRS-80 used line numbers back then. I enjoy the problem solving and creative process that writing software invokes.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralPocketPC Installer PinmemberUncleMike9876:40 8 Jan '07  
If you don't want to get your hands dirty with programming, a far easier way of creating installer .exe files for PocketPCs / Windows Mobile devices is using the "PocketPC Installer" :
http://www.pocketpcinstaller.com
 
Basically, it's as easy as creating a .zip file.
 
You just drag'n'drop your .cab files & data files into this program, and it'll compress them all into a single .exe that you can run on your device.
 
By default, it'll only install .cab files that aren't currently installed on your device - very useful if you aren't sure whether your users will have the .Net CF libraries installed.
 
It'll let you add a User Agreement screen, set your own background image, and it'll resume running if one of your .cab files soft-resets the device.

 

GeneralVisual Studio Version PinmemberChris00011:52 15 May '06  
General.net compact framework version PinmemberOrMei11:30 11 Apr '06  
AnswerRe: .net compact framework version Pinmemberwduros17:45 14 Apr '06  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web03 | 2.5.120529.1 | Last Updated 24 Feb 2006
Article Copyright 2006 by wduros1
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid