Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Persistent Mobile Device Application

0.00/5 (No votes)
19 May 2008 1  
Permanent Storage of a Mobile Device Application

Introduction

This article discusses the persistence of your Symbol Mobile Device Application. If you follow this way of installing your application on Mobile Device, it will never be lost and you can find it on the device even after a cold boot.

Background

This article is an answer to questions like:

  1. My application gets lost when the battery goes.
  2. I want to see my application after every time I cold boot my Mobile Device.
  3. Where should I install my cab file.

Using the Code

Whenever we want to install an application on the mobile device, we need to follow the steps written below:

Step 1- Copy your cab file in the application folder.

Step 2 - Copy the cab.cpy file in the application folder (we'll write the cab.cpy file now).

Step 3 - Copy the cab.reg file in the application folder (we'll write the cab.reg file now).

After following these steps, your application will be installed as one of the system applications:

//Creating cab.cpy file
//Open any text editor, write this line and save it as cab.cpy

\application\MyCabFile.cab >  \windows\MyCabFile.cab

//Creating cab.reg file
//Open any text editor, write these line and save it as cab,reg

[HKEY_CURRENT_USER\Software\Symbol\Startup\Programs\Prog10]
"Name"="\windows\wceload.exe"
"Command"="\Windows\MyCabFile.cab"
"Continue"=dword:0
"ColdBootOnly"=dword:1

The above reg file will install the application every time you cold boot the device.

This will resolve your issues related to installation of applications into Symbol Mobile Devices.

History

  • 19th May, 2008: Initial post

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here