The slides for this event will be posted at:
Post on 15-Jan-2016
21 Views
Preview:
DESCRIPTION
Transcript
The slides for this eventwill be posted at:
www.microsoft.com/uk/msdn/postevents
Windows Mobile Application Deployment
Marcus Perrymanmarcpe@microsoft.comhttp://blogs.msdn.com/marcpe
Agenda
Automatic application deploymentCAB files: your deployment friendGetting the CAB to the device
Via WEB, MAIL
Desktop Installer
Using removable mediaAutorun.exe
Provisioning multiple devicesSecurity
Auto Application Deployment
During development – what happens?Exe’s are deployed to \Program Files\<APP>
ATL DLL’s are registered
Duplicate through RAPIRemote API – requires Active Sync
CeRapiInit / CeRapiInitEx
CeCreateFile + CeWriteFile
CeCloseHandle
CeRapiUninit
Managed wrapper:OpenNETCF.Desktop.Communication
Desktop DeviceC++, H and lib modules
eVC Compiler
Controls and Com Objects
ActiveSync
Platform Manager Platform Manager (CEMGRC.EXE)
?.exe?.dll
?.exe?.dll
Coredll.dll
CEMON
CE
Shared/ 3rd party Libs
demoRemote API
CAB Files Your Deployment Friend
What is a CABinet file?Default uninstall provided for free (Logo requirement)
Building CAB filesINF fileSetting Registry stringsUsing File GroupsInstall strings
Pre and Post install dllWCELoad and its parameters
/Delete [0|1|2] default to 2/askdest/noaskdest/nouiDefaults at “HKLM\Software\Apps\Microsoft Application Installer”
demoCAB files
Getting the CAB to the device
Pocket IE supports file downloadWCELoad run automatically through file associationSecurity can be provided by HTTPSProcessor type issues!
Deployment as Mail attachmentMark for download may be required (User option)Processor type issues!
Smartphone supports compressed CAB
Getting the CAB to the device (2)
Using Active SyncFile transfer – too complicated for users.Application Manager
HKLM\Software\microsoft\windows\currentversion\
app paths\ceappmgr.exe
Building the INI filePutting it all together:
Visual Studio Installerhttp://msdn.microsoft.com/vstudio/downloads/tools/
vsi11/
InstallShield + others for packaged install
demoPutting it all together
Using removable media
Autorun.exe
\2577\autorun.exeOn media insert check for Autorun.exeCopy to \windowsExecute in \windowsOn media removal Execute in \windows
demoUsing Autorun.exe
Internal “Removable” Media
Pocket PC internal Storage card32+ MB Rom space for most devicesOften some free for Internal Storage cardTreated the same as removable
\2577\Autorun.exe
Executed on soft and hard reset
demoDon’t try this at home!
Provisioning multiple devices
SMS 2003 Device Management Feature Pack
FunctionalityHardware / Software inventory Software distribution via CABSettings / Password management (Windows Mobile only) Automated DM client deployment from SMS desktop
PlatformsPocketPC (Phone Edition) 2002 and aboveWindows CE 3.0 and above
ScenariosEnterprise hosted management infrastructure for mobile devices
http://www.microsoft.com/smserver/downloads/ 2003/dmfp.asp
SMS 2003 DMFP Client Installation and ConfigurationOptions for installing
management clientA) Client built-in via CE 5.0 PlatformBuilder
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 clientdistribution
Install client Register with DMP
Provisioning multiple devicesRole 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 filterDuring 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.exeVia Mail, Web or SMS 2003
Pocket PC v.Next with 1 tier security
Device Security PolicyResolved Code ID
Unsigned Signed PRIV Signed
Oper. Signed
Blocked
Prompt/ Normal
Run/ Normal
Cod
e G
roup
Trusted
Locked Device: Block allOnly operator appsOriginal Orange
Closed Device: Run signed only
Prompt (default): Run w/ promptsEmulator
Open Device: Run everything TrustedAT&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 ConnectionGet 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 SiteAll information on past events, slide decks etc
http://www.microsoft.com/uk/msdn/postevents
The UK MSDN Site & FlashLocal news, events, webcasts
http://www.microsoft.com/uk/msdn
Register to received the bi-weekly MSDN Flash by emailhttp://www.microsoft.com/uk/msdn/flash.aspx
Try Visual Studiohttp://www.microsoft.com/vstudio/tryit
Take a look at the Express productshttp://msdn.microsoft.com/express
GotDotNet and ASP.NET – lots of excellent resources
http://www.gotdotnet.comhttp://www.asp.net
The slides for this eventwill be posted at:
www.microsoft.com/uk/msdn/postevents
top related