Presentation is loading. Please wait.

Presentation is loading. Please wait.

The slides for this event will be posted at: www.microsoft.com/uk/msdn/postevents.

Similar presentations


Presentation on theme: "The slides for this event will be posted at: www.microsoft.com/uk/msdn/postevents."— Presentation transcript:

1 The slides for this event will be posted at: www.microsoft.com/uk/msdn/postevents

2 Windows Mobile Application Deployment Marcus Perryman marcpe@microsoft.com http://blogs.msdn.com/marcpe

3 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

4 Auto Application Deployment During development – what happens? Exe’s are deployed to \Program Files\ ATL DLL’s are registered Duplicate through RAPI Remote API – requires Active Sync CeRapiInit / CeRapiInitEx CeCreateFile + CeWriteFile CeCloseHandle CeRapiUninit Managed wrapper: OpenNETCF.Desktop.Communication

5 Desktop Device C++, H and lib modules eVC Compiler Controls and Com Objects ActiveSync Platform ManagerPlatform Manager (CEMGRC.EXE) ?.exe ?.dll ?.exe ?.dll Coredll.dll CEMON CE Shared/ 3 rd party Libs

6 demo Remote API

7 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”

8 demo CAB files

9 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

10 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/vsi1 1/ InstallShield + others for packaged install

11 demo Putting it all together

12 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

13 demo Using Autorun.exe

14 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

15 demo Don’t try this at home!

16 Provisioning multiple devices

17 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

18 SMS 2003 DMFP Client Installation and Configuration Options for installing management client A) Client built-in via CE 5.0 Platform Builder B) CAB install via Active Sync or network Client CAB Options for registering with Device Management Point A) Type DMP name in Device Management program B) Run registry configuration file on the device at install time C) Distribute configuration file via SMS client distribution C) CAB install from memory card D) CAB install via SMS client distribution Install client Register with DMP

19 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.

20 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

21 Device Security Policy Locked Device: 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

22 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.

23 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

24 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

25

26 The slides for this event will be posted at: www.microsoft.com/uk/msdn/postevents


Download ppt "The slides for this event will be posted at: www.microsoft.com/uk/msdn/postevents."

Similar presentations


Ads by Google