Create and install a cab file on Windows Mobile

Source: Internet
Author: User

Create a cab file, shortcuts, and Chinese characters:

Http://www.haogongju.net/art/1038843

 

How to install MSIProgramDeploy multiple. Cab installation packages on Windows Mobile devices.

Deploying. NET Compact Framework 2.0 applications with. Cab And. MSI files
Developing and deploying Pocket PC setup applications

Create a. Cab installation file without prompting you to select the installation path.

Making a cab file which doesn't prompt for installation location

Uninstall the Windows Mobile Application programmatically (use uninstall configuration service provider ).

Uninstalling applications programmatically in Windows Mobile

 

Share the teaching materials and software for creating the cab installation package on PPC:
I. Tool Software
To install the program on WinCE, you need to create the *. Cab installation package. Special tools and software are required to create the *. Cab installation package. The most commonly used tool is wince cab manager.

Ii. Preparation and Installation Process

Step 1: Create a. inf file first
To create the. Cab installation package, you only need to write a. inf file, you can also use the text editing tool to create it, and prepare all the files and programs you want to install to PPC.
Step 2: generate a cab package
As long as you open your inf file in wince cab manager, WinCE cab manager will generate the *. cab file based on your inf file. You just need to save it.
Step 4: connect your phone to the PC through USB and run the *. Arm. cab file.

3. Prepare an INF file description

The first field [version]
You can modify the provider in Java. Do not touch the other two parameters.
The second field [cestings]
CompanyName = "bbs.ucweb.com"
Appname = "PPC"
Installdir = \ userdata \ myoa
Note:
CompanyName is the company name and can be modified at will.
Appname is the application name and can be modified at will.
Installdir is the path of the wince terminal installed by the application, which can be modified at will.
Third Field [cedevice]
The cedevice field is the device platform corresponding to the program, so you don't have to worry about it.
The fourth field [sourcedisksnames]
Is the disk path where the source file program is located.
1 =, "cab", "d: \ oasourcedir \ programe \"
You can modify "D: \ oasourcedir \ programe \" to specify the path of the source file, that is, the *. EXE file path of the installation disk to be created. Do not modify any other files.
The fifth field [sourcedisksfiles]
Is the list of source files to be packaged. The value = 1 next to it indicates the file path, that is, 1 in [sourcedisksnames.
Oa.exe = 1
Readme.txt = 1
My.jpg = 1
You can add the name of any source file to be packaged in the format of file name. file type = 1
The sixth field [defainstall install]
Ceshortcuts = ceshortcuts1, ceshortcuts2, ceshortcuts3, ceshortcuts4
Copyfiles = files. Common
Addreg = regdata
When the app is installed on the mobile phone:
The copyfiles parameter indicates how to decompress and copy files during installation, and the addreg parameter indicates how to modify the Registry during installation. The ceshortcuts parameter indicates how to create a shortcut on the wince desktop.
Copyfiles = followed by the field name, that is, what exactly do you want to copy. Addreg = works the same way.
For example, in the tutorial, copyfiles‑files.common=*cabwiz.exe needs to copy a file,
You need to copy some files to the specified directory for installation. The files to be copied are in the [files. Common] field.
Addreg = regdata indicates that the installation program also needs to modify the registry. The modified content is in the [regdata] field.
The seventh field [files. Common]
That is, to install and copy files to your mobile phone, which files need to be copied during the target installation should be the same as the file name in [sourcedisksfiles.
Oa.exe,.exe .exe, 0
Readme.txt,readme.txt, 0
My.jpg, my.jpg, 0
The eighth field [shortcuts]
About Application desktop shortcut settings:
Sample app,0 sample.exe
Sample app,0, sample.exe, % installdir %
Field syntax description: the four fields are separated by commas. The content of the first three fields must be filled in.
The first field is the shortcut key name, that is, the name of the desktop shortcut in wince.
0 indicates a file in the second domain, and any other non-zero number indicates a directory,
The third field is the target program (directory) of the shortcut key ),
The fourth field is the optional field, which is the directory for storing the shortcut key. The default directory is shortcuts = "" in [destinationdirs]. You can specify other directories, if you want to add your own shortcut keys to the Start Menu, write storage \ windows \ startmenu \ here \.
The following is an example:
Mobile OA, OA .exe, userdata \ myoa
The ninth field [regdata]
The Registry is modified when the installation program is sent to the mobile phone step.
The first "," indicates the names of the four major blocks in the Registry, which can be abbreviated directly. For example, HKLM in the template represents HKEY_LOCAL_MACHINE, and the other three are hkcr, hkcu, and HKU respectively.
The second "," indicates the specific path of the key you want to modify (if not, it will be automatically created), that is, the complete item (key) Name,
The third "," indicates the key you want to modify (that is, we often modify the Registry Article Value Name). If there is no value, the program will be automatically created,
The fourth "," indicates the value type. Currently, I only know that the integer is 0x00010001 (See Supplement 2). leave it blank for the dense data. ",. Finally, it is the value you want to fill in.
In the example
HKLM, Software \ Microsoft \ shell \ Rai \: callalert, bkbitmapfile, "\ storage \ Application Data \ home \ iMac \ call1.jpg"
Indicates the value of the key bkbitmapfile. It is stored in HKLM \ Software \ Microsoft \ shell \ Rai \: callalert, the value is \ storage \ Application Data \ home \ iMac \ call1.jpg. Obviously, this is a string-type key.

4. How to obtain an INF file example

Install an wince cab manager. It is best to install a Chinese language. Open a current cab file, select File-export to inf from the menu, and select the export path, you can generate an INF file of the current cab file in the directory you specified! You can study it yourself!

4. Make your own cab package by courier
Writing an INF package is still quite time-consuming for me. My general method is to find a current cab package and open it with Wince cab manager, on the wince cab Manager page, you can directly Delete, add files, or modify the registry key, and save the file to get your own cab package.
I believe that everyone here should make their own cab package!

Wince_cab_manager_v3%1%1%1%.0.0.22_ xxxxgreen .part1.rar (1.95 MB)

 

 

Wince_cab_manager_v3%1%1%1%.0.0.22_ xxxxgreen .part2.rar (1.95 MB)

 

 

Wince_cab_manager_v3%1%1%1%.0.0.22_ xxxxgreen .part3.rar (1.95 MB)

 

 

Wince_cab_manager_v3%1%1%1%.0.0.22_ xxgreen .part4.rar (262.04 KB)

Http://bbs.23dopod.com/thread-9876-1-1.html

Import the cab file to PPC for installation:

 

Most software for Windows Mobile devices (Pocket PCs, touchscreen Windows Mobile smartphones and non-touchscreen Windows Mobile smartphones) is downloaded as an executable. EXE file. these files run within Windows, then install themselves on your Pocket PC or Windows Mobile Smartphone via ActiveSync.

 

Sometimes, however, a program is downloaded as. cab, or cabinet, file. these files are designed to run and install themselves within Windows Mobile, and must be transferred to your Pocket PC or smartphone before they can be installed.

 

In this tutorial, we'll show you how to install applications distributed as. CAB files on your windows mobile device.

 

NoteFor the purposes of this tutorial, We'll install pocket Google on a Dell Axim x50v Pocket PC; however the same process works for touchscreen Windows Mobile smartphones. the filename for the installer is pocketgoogle. cab.

Step 1: Moving the. cab file to your Windows Mobile Device

Our first step is simply transferring the. cab file to the Windows Mobile handheld. The installer file pocketgoogle. Cab is located on our windows desktop.

To begin, connect the handheld to your Windows PC using a USB cable or cradle. Allow the synchronization process to complete. Inside ActiveSync, clickExploreButton on the toolbar:

 

TheExploreFeature of ActiveSync is very useful; it provides access to the files stored on your Pocket PC or Windows Mobile Smartphone inside of the Windows OS.

WithMobile DeviceScreen open on your desktop, left-click and hold the. cab file, and drag it toMobile DeviceScreen, then release the mouse button:

 

That's it. The file has now been transferred to the mobile device.

Note: If you copied the file to a subfolder rather than the root "mobile device" folder shown above, you'll need to note. cab file's folder location for the next step.

Step 2: Install the. cab file's software

Now that the. cab file has been copied to your windows mobile device, we're ready to install the program.

On the handheld, tapStart>Programs>File Explorer. If you followed the instructions abve and moved the file to the rootMobile DeviceWindow, navigate toMy DocumentsFolder:

 

You shoshould see the file you transferred inMy DocumentsFolder. When you find it, tap it with your stylus (or, on a non-touchscreen smartphone, highlight the file and hitOKKey). The. cab file will begin the installation process. Follow the instructions on screen, which may vary from program to program:

 

Your software has now been installed and is ready to use:

Final Thoughts

In some cases, opening. cab file and installing the software contained within will cause the file to be deleted when the installation process is complete. in other cases, you'll need to manually delete. cab file usingFile Explorer. Leaving the. cab file in your handheld's memory will take up space, but is perfectly safe.

If you're more comfortable moving files to your windows mobile device using a flash memory card and a memory card reader, feel free to do so. this tutorial covered the ActiveSync method of transferring files in the interests of universality (since some users don't have card readers in their PCs ).

It is also possible to download software contained within. cab file directly to your Windows Mobile Pocket PC or smartphone from the Internet. if you download. cab file directly to your device, simply begin at Step 2 to install the software if it doesn' t install automatically.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.