The slides for this event will be posted at: PowerPoint PPT Presentation

presentation player overlay
1 / 26
About This Presentation
Transcript and Presenter's Notes

Title: The slides for this event will be posted at:


1
The slides for this eventwill be posted at
  • www.microsoft.com/uk/msdn/postevents

2
Windows Mobile Application Deployment
  • Marcus Perryman
  • marcpe_at_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?
  • Exes are deployed to \Program Files\ltAPPgt
  • ATL DLLs 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
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
6
Remote API
demo
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 012 default to 2
  • /askdest
  • /noaskdest
  • /noui
  • Defaults at HKLM\Software\Apps\Microsoft
    Application Installer

8
CAB files
demo
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/
    vsi11/
  • InstallShield others for packaged install

11
Putting it all together
demo
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
Using Autorun.exe
demo
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
Dont try this at home!
demo
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
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) CAB install via Active Sync or network
B) Run registry configuration file on the device
at install time
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
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
  • ATT WS

22
Summary
  • CAB files are your flexible friend for
    deployment, Install and Uninstall on the Pocket
    PC
  • There are many ways to apply CABs 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) youre interested in
  • The technology area(s) youre 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
(No Transcript)
26
The slides for this eventwill be posted at
  • www.microsoft.com/uk/msdn/postevents
Write a Comment
User Comments (0)
About PowerShow.com