260 likes | 364 Views
The slides for this event will be posted at:. www.microsoft.com/uk/msdn/postevents. Windows Mobile Application Deployment. Marcus Perryman marcpe@microsoft.com http://blogs.msdn.com/marcpe. Agenda. Automatic application deployment CAB files: your deployment friend
E N D
The slides for this eventwill be posted at: www.microsoft.com/uk/msdn/postevents
Windows Mobile Application Deployment Marcus Perryman marcpe@microsoft.com http://blogs.msdn.com/marcpe
Agenda • Automatic application deployment • CAB files: your deployment friend • Getting the CAB to the device • Via WEB, MAIL • Desktop Installer • Using removable media • Autorun.exe • Provisioning multiple devices • Security
Auto Application Deployment • During development – what happens? • Exe’s are deployed to \Program Files\<APP> • ATL DLL’s are registered • Duplicate through RAPI • Remote API – requires Active Sync CeRapiInit / CeRapiInitEx CeCreateFile + CeWriteFile CeCloseHandle CeRapiUninit • Managed wrapper: • OpenNETCF.Desktop.Communication
Desktop Device C++, H and lib modules ActiveSync Platform Manager Platform Manager (CEMGRC.EXE) eVC Compiler CEMON ?.exe ?.dll ?.exe ?.dll Controls and Com Objects Coredll.dll Shared/ 3rd party Libs CE
demo Remote API
CAB Files Your Deployment Friend • What is a CABinet file? • Default uninstall provided for free (Logo requirement) • Building CAB files • INF file • Setting Registry strings • Using File Groups • Install strings • Pre and Post install dll • WCELoad and its parameters • /Delete [0|1|2] default to 2 • /askdest • /noaskdest • /noui • Defaults at “HKLM\Software\Apps\Microsoft Application Installer”
demo CAB files
Getting the CAB to the device • Pocket IE supports file download • WCELoad run automatically through file association • Security can be provided by HTTPS • Processor type issues! • Deployment as Mail attachment • Mark for download may be required (User option) • Processor type issues! • Smartphone supports compressed CAB
Getting the CAB to the device (2) • Using Active Sync • File transfer – too complicated for users. • Application Manager HKLM\Software\microsoft\windows\currentversion\ app paths\ceappmgr.exe • Building the INI file • Putting it all together: • Visual Studio Installer http://msdn.microsoft.com/vstudio/downloads/tools/vsi11/ • InstallShield + others for packaged install
demo Putting it all together
Using removable media • Autorun.exe \2577\autorun.exe • On media insert check for Autorun.exe • Copy to \windows • Execute in \windows • On media removal • Execute in \windows
demo Using Autorun.exe
Internal “Removable” Media • Pocket PC internal Storage card • 32+ MB Rom space for most devices • Often some free for Internal Storage card • Treated the same as removable • \2577\Autorun.exe • Executed on soft and hard reset
demo Don’t try this at home!
SMS 2003 Device Management Feature Pack • Functionality • Hardware / Software inventory • Software distribution via CAB • Settings / Password management (Windows Mobile only) • Automated DM client deployment from SMS desktop • Platforms • PocketPC (Phone Edition) 2002 and above • Windows CE 3.0 and above • Scenarios • Enterprise hosted management infrastructure for mobile devices http://www.microsoft.com/smserver/downloads/ 2003/dmfp.asp
SMS 2003 DMFP Client Installation and Configuration Options for installing management client Options for registering with Device Management Point A) Client built-in via CE 5.0 PlatformBuilder A) Type DMP name in Device Management program B) Run registry configuration file on the device at install time B) CAB install via Active Sync or network C) CAB install from memory card C) Distribute configuration file via SMS client distribution D) CAB install via SMS clientdistribution Install client Register with DMP Client CAB
Provisioning multiple devices • Role your own: Web or Mail delivery. ClickOnce? • Application detection on start-up. • Today add-in timer based web service check • Connection type? Active Sync, TCPIP, dial-up • Custom Active Sync filter • During synchronization, check central server location (web service), download and apply any changes.
Security • Smartphone today requires signing: • Application and DLL components, managed and native. • Install DLL, CAB file, Autorun.exe • Via Mail, Web or SMS 2003 • Pocket PC v.Next with 1 tier security
Device Security Policy LockedDevice: Block all Only operator apps Original Orange Closed Device: Run signed only Prompt (default): Run w/ prompts Emulator Open Device: Run everything Trusted AT&T WS
Summary • CAB files are your flexible friend for deployment, Install and Uninstall on the Pocket PC • There are many ways to apply CAB’s to the device – choose the appropriate solution for your application. • Smartphone security model may effect your development cycle. Even more ways to deploy to the device with GSM technologies.
MSDN Connection • Get personalised info and a customised RSS feed • The programming language(s) you’re interested in • The technology area(s) you’re interested in • The information you want • View news, technical resources, events, webcasts and community information • Sign up for MSDN Connection at: • http://www.microsoft.com/uk/msdn
Additional Information • Post Events Site • All information on past events, slide decks etc • http://www.microsoft.com/uk/msdn/postevents • The UK MSDN Site & Flash • Local news, events, webcasts • http://www.microsoft.com/uk/msdn • Register to received the bi-weekly MSDN Flash by email • http://www.microsoft.com/uk/msdn/flash.aspx • Try Visual Studio • http://www.microsoft.com/vstudio/tryit • Take a look at the Express products • http://msdn.microsoft.com/express • GotDotNet and ASP.NET – lots of excellent resources • http://www.gotdotnet.com • http://www.asp.net
The slides for this eventwill be posted at: www.microsoft.com/uk/msdn/postevents