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

The slides for this event will be posted at:

Jan 15, 2016

Download

Documents

lyneth

The slides for this event will be posted at:. www.microsoft.com/uk/msdn/postevents. Windows Mobile Application Deployment. Marcus Perryman [email protected] http://blogs.msdn.com/marcpe. Agenda. Automatic application deployment CAB files: your deployment friend - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: The slides for this event will be posted at:

The slides for this eventwill be posted at:

www.microsoft.com/uk/msdn/postevents

Page 2: The slides for this event will be posted at:

Windows Mobile Application Deployment

Marcus [email protected]://blogs.msdn.com/marcpe

Page 3: The slides for this event will be posted at:

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

Page 4: The slides for this event will be posted at:

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

Page 5: The slides for this event will be posted at:

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

Page 6: The slides for this event will be posted at:

demoRemote API

Page 7: The slides for this event will be posted at:

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”

Page 8: The slides for this event will be posted at:

demoCAB files

Page 9: The slides for this event will be posted at:

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

Page 10: The slides for this event will be posted at:

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

Page 11: The slides for this event will be posted at:

demoPutting it all together

Page 12: The slides for this event will be posted at:

Using removable media

Autorun.exe

\2577\autorun.exeOn media insert check for Autorun.exeCopy to \windowsExecute in \windowsOn media removal Execute in \windows

Page 13: The slides for this event will be posted at:

demoUsing Autorun.exe

Page 14: The slides for this event will be posted at:

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

Page 15: The slides for this event will be posted at:

demoDon’t try this at home!

Page 16: The slides for this event will be posted at:

Provisioning multiple devices

Page 17: The slides for this event will be posted at:

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

Page 18: The slides for this event will be posted at:

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

Page 19: The slides for this event will be posted at:

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.

Page 20: The slides for this event will be posted at:

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

Page 21: The slides for this event will be posted at:

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

Page 22: The slides for this event will be posted at:

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.

Page 23: The slides for this event will be posted at:

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

Page 24: The slides for this event will be posted at:

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

Page 25: The slides for this event will be posted at:
Page 26: The slides for this event will be posted at:

The slides for this eventwill be posted at:

www.microsoft.com/uk/msdn/postevents