Back in 2005, I wrote up a series of blog posts on how to get Windows Mobile 5 running inside an emulator on your USB key (more here on WM5, and the original Portable CE). Interestingly enough, I’ve actually had a post sitting in my draft folder for several weeks on putting together Portable CE 3.0, which I was going to use the latest and greatest version of the MS Device Emulator, Windows Mobile 6.1, etc.

Anyways, looks like Windows For Devices has linked to a MS TechNet post that talks about almost the same thing, saving me the time of having to finish my write up.

Here’s a list of things you’ll need to download to get it up and running:

Update: I’ve posted a new Portable CE 3.0 launch script.

Also of interest is the MSDN Documentation for the Device Emulator and the post ‘What’s new in the Device Emulator version 3‘.

(Photography: ‘scootie’, creative commons license)


2 Comments

    George (April 22, 2008 @ 9:36 pm)

    Regarding Portable CE 3.0, for the pce2.cmd script:

    1) What do I need to change for the VMID if I am to run WM6 images (I have the US and the CHT version) ? The title of the window still says “Windows Mobile 5.0″.

    2) Even though I added the /memsize 256 argument, I don’t get 256MB of RAM. Not even 128MB either!

    3) Is there a limit to a 16bit display for the device emulator? 32bit is seems not possible. Something to do with display buffer.

    4) I’ve tried to enable the NE2000 network adapter from the emulator console but it replies “The required Virtual machine Network Driver could not be found. Make sure that Virtual PC 2007 is installed.”
    Well, I did install Virtual PC 2007 but yet, it still throwing me the error all the time. What am I missing?

    Below is a sample of my pce2.cmd script. Thanks alot.

    =============================================
    @echo off
    if “%1″==”/?” goto HELP

    REM ** Emulator Setup **
    echo Portable CE 3.0 English Edition Setup
    echo.

    set EMULATORIMG=”PPC_USA_VGA.bin”
    set VMID={C21E2F27-73BF-4111-ABC1-92EE8C8466D1}
    if NOT “%1″==”/clean” goto NETWORKSERVICES
    set PORTCEIMG=%EMULATORIMG%
    echo [Using Clean Image: %PORTCEIMG%]

    :NETWORKSERVICES
    echo [Verifying Networks Services]
    IF EXIST %SystemRoot%\system32\Drivers\VMNetSrv.sys goto STORAGECARD
    echo ** VM Network Services not installed. Installing. **
    snetcfg_wxp -v -l “%CD%\VMNetSrv.inf” -c s -i cntx_vpcnets2
    SET UNINSTALLDEVICEDRVR=1

    :STORAGECARD
    set SHAREDIR=”%CD%\Apps”
    echo [Emulator Storage Card enabled. Using: %SHAREDIR%]
    echo ** In the emulator, use File Explorer to go to “\My Device\Storage Card” **
    IF EXIST %SHAREDIR% goto VMDIR
    mkdir %SHAREDIR%

    :VMDIR
    set STATEDIR=State
    set STATEFILE=”%CD%\%STATEDIR%\StateData.dess”
    echo [Persistent Storage enabled. Using: %STATEFILE%]
    if EXIST “%CD%\%STATEDIR%” goto VMFILE
    mkdir “%CD%\%STATEDIR%”

    :VMFILE
    if EXIST %STATEFILE% goto RUNEMULATOR
    set PORTCEIMG=%EMULATORIMG%
    echo [Couldn't find state file, using: %PORTCEIMG%]

    :RUNEMULATOR
    .\DeviceEmulator.exe %PORTCEIMG% /video 640x480x16 /memsize 256 /p /vmname “Windows Mobile 6.0″ /s %STATEFILE% /sharedfolder %SHAREDIR% /vmid %VMID% /batterycharge 100 /z /vfp /rotate 270 /nosecurityprompt /cpucore ARMv5

    :CLEANUP
    echo .
    if NOT defined UNINSTALLDEVICEDRVR goto FINISH
    echo [Cleaning up installed items]
    echo ** Uninstalling VM Network Services **
    snetcfg_wxp -u cntx_vpcnets2

    :HELP
    echo.
    echo Portable CE 3.0 Emulation Launcher
    echo Syntax: pce2.cmd [/clean]
    echo.
    echo /clean Load a clean copy of the emulator, ignoring saved state files.
    echo.
    echo.

    :FINISH
    set PORTCEIMG=
    set EMULATORIMG=
    set UNINSTALLDEVICEDRVR=
    set SHAREDIR=
    set STATEDIR=
    set STATEFILE=
    set VMID=


    smakofs (April 23, 2008 @ 6:07 am)

    George – I’ve posted a new launch script here:
    http://www.furrygoat.com/software/pce3.cmd.txt

    I was able to get it to recognize 24 bit color, 256mb and have the window title change appropriately with it.


Sorry, the comment form is closed at this time.