How to create cab package for wm5/wm6

The following is an overview of the steps that you need to perform in order to create an installation package for a Windows Mobile application:

  • Create the Windows Mobile application.
  • Package the Windows Mobile application into a CAB file.
  • Create a custom installer to install the Windows Mobile application.
  • Create a setup.ini file to describe the Windows Mobile application as its associated CAB file.
  • Create a Setup project to package the CAB file, custom installer, and setup.ini files.
  1. create the wm application.

In this step not only will I create the CAB file for the application, but I will also configure it so that a shortcut is created on the user's Start menu when they install the application.

Add a new project to your current solution by going to File(Add Project…. In the Project Types column, expand the Other Project Types node and select Setup and Deployment. Select the Smart Device CAB Project template. Name the project C:/SmartDeviceCab1 and click OK.

In Solution Explorer, click the SmartDeviceCab1 project and set the ProductName property to MySampleApp (see Figure 2). This will be the name of the folder that is created on the Pocket PC when you install the application.

Right-click on SmartDeviceCab1 in Solution Explorer and select Properties. Set the output file name to Debug/SampleApp.cab (see Figure 3). This will be the name and location of the CAB file.

The next step would be to configure how the CAB file will install on the target device when it is deployed onto the user's Pocket PC. For my example, I will create a shortcut on the user's Pocket PC Start Menu so that users can directly launch the application from the Start Menu.

In the File System pane, right-click Application Folder and select Add—>Project Output…. In the Add Project Output Group window, select Primary output and click OK.

Right-click on Primary output from SampleApp(Active) and select Create Shortcut to Primary output from SampleApp (Active) (see Figure 4). The Primary Output refers to the application that will be expanded from the SampleApp.cab cabinet file and here we are creating a shortcut to point to the application.

Rename the default shortcut "SampleApp v1." This will be the shortcut that you will display on the Start menu of the end user devices (you will create the shortcut in the next step).

In the current window, right click on File System on Target Machine and select Add Special Folder—>Start Menu Folder (see Figure 5). This will allow us to put the shortcut we created earlier into the Start Menu folder on the target Pocket PC. If a Start menu already exists on the device simply skip to the next step.

 

The icon for the SampleAppv1 shortcut should be visible from the current window. Drag and drop it onto the Start Menu Folder. The Start Menu Folder should now look like Figure 6. This will cause a shortcut to be created on the user's Pocket PC Start Menu when the application is installed.

The next step is to generate the CAB file. To do that, go to Build—>Build SmartDeviceCab1 to build the CAB file project.

The CAB file is, in itself, an installer, but only end users with above-average computer savvy will know what to do with it. The next step is to actually make a Windows-style application installer that better mimics the typical experience installing applications on PCs.

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值