Create a Windows Mobile installation package

Source: Internet
Author: User
Create a Windows Mobile installation package
Author: Ke Wei | Source: blog Park | 2009.06.25 | reading: 104 times
From: http://www.wmisv.com.cn/WMExpressView.aspx? Newstypeid = ab2cy6c0kq51kp + jh6rkta ==& newsid = 0qyhb8zsdm2qdrqdb8qwgg =
 

First, create a Win32 project and package an EXE file. The DLL file or an empty file (for example, you only want to modify the registry of the target device) is the same:

Now add a smart device cab project to the original project:

In the file system, select the folder on which the EXE or DLL file needs to be put to the target device. If you want to create a new folder in the "Program Files" folder of the target device, right-click "Program Files" and choose "add folder:

Here we want to put the project-generated exe program on the Windows folder, delete the "Program Files folder", create a "Windows folder", and add the project output above:

Now we need to not only add the EXE file to the target device, but also modify the registry of the target device. Now we need to switch to the Registry to try:

You can create or import a file (import an existing reg file, which is generally saved from the registry in the simulator ):

I often use to directly modify the project configuration file of the cab. Note that this file only supports ASCII codes. When there are Chinese characters in it (when your machine name is Chinese, or when you add the registry key value), an error will occur during compilation, prompting the Unicode conversion ASCII code error:

Here is the configuration information added from the Registry attempt:

OK. Click Generate below. During development, if we want to see the effect of DLL running, we often need to make a cab package like this.

Finally, your cab package may require code signature. Otherwise, some DLL files such as services cannot run normally if they do not have a signature.

The following describes how to add shortcuts in the "program" column of the mobile phone:

Copy a shortcut under/Windows/Start Menu/programs to PC and change it to 212.16myapplication.exe. Save the modification and rename the shortcut, copy to the/Windows/start menu ("START" menu)/programs (Program) Directory of your phone. Copy myapplication.exe to the Windows directory, and you will find your application under program. These operations can be implemented using the cab package described above.

 

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.