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