[References] More on device app install-installing a Windows Mobile Device Application from

Source: Internet
Author: User
Http://www.pluralsight.com/blogs/jimw/archive/2006/09/11/37653.aspxMore on device app install- installing a windows mobile device application from a desktop MSI following my post a few weeks ago adapt your app resources and references I 've got Ed a few questions on taking the application installation to the next step. you may recall that in that post, there was a sample of how to make a Windows Mobile Application install more flexible. basically the example shows two things: (1) how to create a single cab file that instols multiple CAB files (2) include conditional logic in the install to determine which cab files to install the next logical step (and the issue I have Ed the questions regarding) is how to trigger this install from a regular windows MSI install package running on a desktop computer. the answer is pretty straight-forward but is sometimes difficult to find in the docs. to install a cab file onto a windows mobile device from the desktop computer you use the ceappmgr.exe program. you simply execute the program passing it *. INI file as the command line argument. the *. INI file basically lists the CAB files to install. the command line looks like the following "c: \ Program Files \ Microsoft ActiveSync \ ceappmgr.exe" c: \ XXX \ mysetup. INI the app Mgr *. INI file format is much simpler then *. INI file used to actually generate a cab file. basically the mysetup. INI can be as simple as this: [ceappmanager]
Version = 1.0
Component = deviceapp [deviceapp]
Description = My Device Application
Cabfiles = mydeviceapp. Cab

Similar to the way the previous example works by including a custom setup DLL in the master cab on the device to install the individual CAB files, you need to create custom a DLL that is called from the MSI on the desktop to initiate the install on the device. the custom DLL simply callceappmgr.exe and passes *. INI filename on the command line. one thing to note on executing the ceappmgr.exe program from the setup dll: by Convention (and Good Programming Practice) do not hardcode the folder name where ceappmgr.exe is located. instead you shoshould get the fully qualified path from the registry. the fully qualified path is the default value for this registry key: HKLM \ Software \ Microsoft \ Windows \ CurrentVersion \ app paths \ ceappmgr. EXE currently there's no really solid single source that both explains and demonstrates the various details of application installation. there is one in the works but it won't be up on msdn until sometime in 2007. in the absence of a single point, use the following URLs to get a complete sample and some backing explanation. sample
Using the Application Manager
Creating an INI file for the Application Manager
Simple Application Manager INI file example that shoshould do it. please post your questions or experiences with the installin the comments. I 'd really like to see a dialogue come together on what people are experiencing. if we can get some solid real-life stories, we can get them stored in the single-source installation doc we're re putting together. posted on Monday, September 11,200 6 pm

Comments

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.