PC Review


Reply
Thread Tools Rate Thread

Deploying .NET Compact Framework 2.0 Applications with .cab and .msiFiles

 
 
bjasmer@gmail.com
Guest
Posts: n/a
 
      26th Mar 2008
Microsoft shows you how to deploy applications to your Windows Mobile
device using the ActiveSync application in the following document:

http://msdn2.microsoft.com/en-us/library/aa446504.aspx

One problem I found is that, after launching the Installer program,
the Installer application ends prior to the ActiveSync Application
Manager (the 'Add/Remove Programs pop up window) being closed.

In other words, the Installer gives you the message "Installation
Complete" when, in fact, the Appplication Manager window is still open
waiting for you to determine which apps to install or uninstall.

To get the Installer to wait until you enter your choices in the
Application Manager, you can simply recode the following line in your
CustomInstaller_BeforeInstall() function:

BEFORE (as in the example on Microsoft's page <link is above>):

Process = System.Diagnostics.Process.Start(appMgrPath, "\" &
"Path.Combine(installPath, CEAPPMGR_INI_FILE)" & "\")

AFTER (change the 1 line above to these 3 lines):

Dim myprocess As Process =
System.Diagnostics.Process.Start(appMgrPath, "\" &
"Path.Combine(installPath, CEAPPMGR_INI_FILE)" & "\")
myprocess.WaitForExit()
myprocess.Close()

This will wait for you to click 'OK' or 'Cancel' on the Application
Manager process, before the Installer program indicates that the
installation is complete.

Brian Jasmer
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compact Framework Keeps Deploying Mobile Application Developer (MAD) Microsoft Dot NET Compact Framework 5 28th Jul 2009 02:21 AM
deploying compact framework on a pocket pc device Ira Spier Microsoft Dot NET Compact Framework 3 1st Oct 2008 04:02 AM
How to port windows applications to compact framework applications? miloszl@gmx.de Microsoft Dot NET Compact Framework 4 15th Jun 2005 12:18 PM
RE: Problems Deploying Compact Framework =?Utf-8?B?S2FybCBQaWVyYnVyZw==?= Microsoft Dot NET Compact Framework 0 15th Jul 2004 02:06 AM
Re: Problems Deploying Compact Framework Peter Foot [MVP] Microsoft Dot NET Compact Framework 1 14th Jul 2004 08:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:27 AM.