Use ceappmgr to automatically install the program to smartphone

Source: Internet
Author: User

Installing the program to smartphone is troublesome. You can pack the program into a cab package and copy it to the attachment directory of the mobile phone. You can install the program by clicking "run" on the mobile phone, you can directly use ceappmgr to install the program on your mobile phone. You need to install ActiveSync, which is usually installed on all smartphone instances. The following describes how to implement it.

Before introducing the installation, explain how to generate a cab package. applications developed using vs.net 2003 cannot generate a package through its "generate a cab file" because the packaging program used by smartphone has changed, perform the following steps:

1. run "vsd_setup.dll" from c: \ Program Files \ Microsoft Visual Studio. NET 2003 \ compactframeworksdk \ v1.0.5000 \ Windows CE \ wce400 \ x96 copy to c: \ Program Files \ Microsoft Visual Studio. NET 2003 \ compactframeworksdk \ v1.0.5000 \ Windows CE \ smartphone \ wce400 \ x86 (for actual devices, the same files must also be copied to the armv4 processor/folder)

2. Use the "release" configuration to load and generate a project. Select build/build cab file to generate the batch file used to create the compressed file. The batch name is "buildcab. Bat" and is located in <project path>/obj/release. Batch files include support for x86 and armv4 processors.

To generate a compressed file, you also need to manually change the batch file. Replace the replacement cabwiz.exe command with the "Export cabwizsp.exe" command (it can be found in c: \ Program Files \ Windows CE tools \ wce420 \ Smartphone 2003 \ tools by default)

3. if you install the generated compressed file on the device, you will find that the Application name is the same as the project name used in Visual Basic. net. In addition, the company name is set to "my company". You may not want to use this name. To create a custom compressed file, you need to view the folder with a batch file (in <project path>/obj/release ). You can find the installation information file (. inf) required to create the compressed file)

After completing the preceding steps, run the buildcab. BAT file to generate the cab package (in the <project path>/CAB/release directory)

Then you can use the ceappmgr file to install mysetup. ini. This file contains the installation information.

[Ceappmanager]

Version = 1.0

Component = myapplication

[Myapplication]

Description = myproject

Cabfiles = pda100_smp.armv4.cab

The cabfiles is followed by the cab package of your program. If there are programs with multiple processors, separate them with commas.

In this way, run ceappmgr <INI file path> mysetup. ini to distribute the program to your mobile phone, provided that your mobile phone is connected to your computer.

You can also complete these tasks by installing the program. The key is that the INI File Created by the cab and executed by the ceappmgr must be correct. By default, the INI file and your cab package file are in the same directory. Otherwise, the operation fails.

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.