Welcome to Exchange Team Blog Sign in | Join | Help

Syndication

This Blog

Installing and running Windows Mobile emulators

EDIT: This post was updated on 6/12/2008 for clarity.

On the Exchange Client Server Infrastructure (XCSI) support team we use Windows Mobile emulators on a daily basis to troubleshoot customer issues.  One thing I'm often asked is how to install them.  The directions have never been clearly listed online (unless you're developing for the Windows Mobile platform since they come with the development tools) so it can take a lot of searching to pull all the required bits of information to finally get it installed.  I wrote the following directions to help my colleagues to quickly install and run Windows Mobile 5+MSFP and Windows Mobile 6 emulators without having to install the development tools.

Installing Windows Mobile 5 + MSFP:

  1. In order to install the WM5+MSFP standalone emulator pack (efp.msi) you need to install Virtual PC 2007 or Virtual Server 2005 R2, since the stand-alone Virtual Machine Network Driver has been removed from Microsoft.com, and efp.msi requires it:
    1. Virtual PC 2007
    2. Virtual Server 2005 R2 SP1
  2. Download efp.msi & V1Emulator.zip files from here.
  3. Install the standalone emulator by running standalone_emulator_V1.exe from V1Emulator.zip.
  4. Install the WM5+MSFP Emulators by running efp.msi.

You now have the Windows Mobile 5+MSFP SmartPhone & PocketPC emulators in your Start Menu under Programs\Microsoft Windows Mobile 5.0 MSFP Emulator Images

Installing Windows Mobile 6 & 6.1 images:

1. Make sure you've run through the steps for "Windows Mobile 5+MSFP" above.

2. Download your desired type & language/localization version of the Windows Mobile 6 Emulator Images from (you can install both):

    Windows Mobile 6
    Windows Mobile 6.1

    Note: Professional = PocketPC format (touch screen) / Standard = SmartPhone format (no touch screen)

3. Run the downloaded MSI file(s) from above.  Note: you may receive an error regarding not having Visual Studio 2005 installed.  This error can be safely ignored per my tests, although there is a link explaining why this error may be happening on either page above.

4. You now have a directory called "Windows Mobile 6 SDK" off your Start Menu > All Programs folder.  Under that directory is a "Standalone Emulator Images" folder with "US English" underneath (your localized version may be different).  In that folder are your emulator images just like the WM5+MSFP install above.  You can modify these shortcuts if you like, but I recommend copying them to another folder before modifying.

Upgrade Device Emulator 1.0 to 2.0, then to 3.0

Note: Though this section is technically optional for those running Windows XP, however you must upgrade to at least 2.0 in order to run under Windows Vista.

1. Run the standalone release of Microsoft Device Emulator 2.0 by following the instructions and running vs_emulator.exe (plus vs_emulator-x64Addon.exe for 64 bit machines) from here.  This upgrades 1.0 to 2.0.

2. Run the standalone release of Microsoft Device Emulator 3.0 by following the instructions & running either vs_emulator.exe (32bit) or vs_emulator_x64_vista.exe (64bit) from here.  This upgrades 2.0 to 3.0.

Tips to optimize your emulators

1. The emulators take up a lot of resources and may run faster if you give them more memory.  To do this, modify the "Target" line in the shortcuts: change 128 to 256 or any higher number.  Remember, this is how much physical memory is dedicated to the emulator, so adjust accordingly to your system's resources.

Sample: "C:\Program Files\Microsoft Device Emulator\1.0\DeviceEmulator.exe" pocketpc.nb0 /memsize 256 /skin Pocket_PC.xml /vmid {f1b1af09-969d-4035-8223-b800c75f451f} /s pocketpc.dess /p /funckey 193

2. To get the emulator to communicate with the Loopback Adapter NIC (best if communicating with your virtual environments in Virtual PC / Virtual Server), add "/p 02004C4F4F50" to the end of the shortcut.  You don't have to put the MAC address here if you want to use the emulator with your default Network adapter to connect to the Internet or corporate network.  Accordingly, if you have multiple NIC's you can specify which one you would like to you use by using that NIC's MAC address (without the dashes) as we do here with the Loopback Adapter.

Sample: "C:\Program Files\Microsoft Device Emulator\1.0\DeviceEmulator.exe" pocketpc.nb0 /memsize 128 /skin Pocket_PC.xml /vmid {f1b1af09-969d-4035-8223-b800c75f451f} /s pocketpc.dess /p 02004C4F4F50 /funckey 193

3. The emulator's NIC is set to get its IP address via DHCP.  If you have a DHCP server on the connected network then you don't have to worry about assigning an IP address.  If the emulator is connecting to a network without a DHCP server you will have to manually assign an IP address.  This is done by doing the following from the emulator:

1. Start > Settings > Connections tab > Network Cards

2. Click NE2000 Compatible Ethernet Driver

3. From here you can set the IP address information from DHCP to static IP addresses.  Here is what this screen looks like:

Don't forget to set your DNS/WINS server information on the "Name Servers" tab.

Configuring the device to communicate via the network adapter:

Verify the emulator is communicating with a NIC by going to the emulator "wrapper" and selecting File > Configure > Network tab. Verify "Enable NE2000 PCMCIA network adapter and bind to:" is checked and a network adapter is selected. Example:

Now follow the below steps for PocketPC/Professional or SmartPhone/Standard below:

Windows Mobile 5 PocketPC or Windows Mobile 6 Professional:

By default the emulated device will not be configured to talk to the configured NIC.  Do the following to correct this:

1. Go to Start > Settings > Connections tab > Connections > Advanced tab > Select Networks.

2. Under "Programs that automatically connect to the Internet should connect using:" select "My Work Network".

3. This final step is only if the emulator is on a network with a proxy server and you want it to use the proxy server to communicate with the Internet: Click Edit > Proxy Settings tab > Check "This network connects to the Internet" & "This network uses a proxy server to connect to the Internet", then populate the "Proxy server:" field with your local proxy server as shown in this example:

Windows Mobile 5 SmartPhone or Windows Mobile 6 Standard:

Note: these steps are for Windows Mobile 6 Standard. I did not get a chance to test with Windows Mobile 5 SmartPhone. The steps should be similar.

By default the emulated device will not be configured to talk to the configured NIC. Do the following to correct this:

1. Go to Start > Settings > Connections > GPRS > New...

2. You'll get the following screen. Description can be anything. I have "LAN" here, but I select "The Internet" under "Connects to:". No other settings need be set if you're on a DHCP network (if not, you can set IP information if you scroll down the screen). Click Done when complete.

3. This final step is only if the emulator needs to use a Proxy server to communicate with the Internet. Navigate to Start > Settings > Connections > Proxy. Select "New...". You'll get the following screen. Description can be anything. I have "Proxy" here. Note the settings as they are in the screenshot below. If you need to enter a username, etc. for the proxy, just scroll down. Click Done when complete.

- Ethan McConnell

Share this post :
Published Monday, September 17, 2007 11:45 AM by Exchange
Filed Under: , , ,

Comments

 

Robert said:

This is a great writeup. Worked perfectly for the PocketPC emulator. How do you config network for the SmartPhone emulator? Thanks!
September 18, 2007 10:07 AM
 

Chad said:

I had to download Device emulator 2.0 to get it working under Vista.  Click my name for a link to it.
September 19, 2007 8:53 AM
 

Karsten said:

I needed the Mobile 5 Emulator für Userdokumentation in German. Unfortuanally these are old Versions. If one enables the Option "enforce Password" for the Mobile Device in Exchage 2003 the Device ist no longer working (It should be version 14847 or higher pre-installed on device). The english Version emulator Image is newer and working.

Could you update the German Images?
September 19, 2007 9:20 AM
 

chris rue said:

Never been written up?

Both the original WM5/DEmu 1.0 Standalone series (http://www.chrisrue.com/funcave/2006/06/wm5-device-emulator-index.html) and the updated series for WM6/DEmu 2.0 Standalone (http://www.chrisrue.com/funcave/2007/03/device-emulator-v2-index.html) can be found at the Funcave.

September 22, 2007 8:26 AM
 

Ethan McConnell said:

Robert,

A new version of the blog should appear in the next few days that will have steps to configure Standard/SmartPhone network settings.

Chad,

Thanks for the feedback.  I will incorporate your note & the link in the next "version" of this blog to be posted shortly.


Karsten,

I will try to find the appropriate team for this and forward your concern to them.  Thanks for pointing that out to us!


Chris,

I never found your instructions in my searching over the years (nor did my colleagues).  That's great you wrote these up and I'm looking forward to reviewing them once my account registration for the site is approved.  Thanks for pointing this out!


Thanks!
Ethan
September 27, 2007 9:03 PM
 

EthanM said:

Karsten,

I received the following response from the team that posts the emulators.  Unfortunately there is nothing we can do to change it.

"WM 5.0 MSFP-enabled emulator images were only released in English by VSD (together with DE v1.0 – see here). The WM 5.0 localized emulator images do not support MSFP and we don’t have plans to update them."

I'm sorry we couldn't do anything more for you.

Regards,
Ethan
September 28, 2007 1:15 PM
 

Karsten said:

ok. Thank you for research.
September 28, 2007 3:29 PM
 

Dsaccess said:

Hi Ethan,

Thanks for the info. While following your steps to install the Windows Mobile 6 Professional image - USA, I received an error message as follows:

"Setup ended prematurely because of an error. Your system has not been modified. To install the program at a later time, please run the installation again."

I did run it again but had no luck. The issue persists even I reboot my PC several times. However, I have no problem running the windows mobile 5 + MSFP, I am running Windows XP SP2 on my pc.

Any ideas?

Thanks!  

Taylor
September 30, 2007 8:34 PM
 

EthanM said:

Taylor/Dsaccess,

I'm not sure what could be causing this problem.  The times I've run into this issue in the past it's usually some step I'm missing, or corrupted files.  Does anything show up in the Application or System event logs?  Is more information given in the error dialog box?

Thanks,
Ethan
October 2, 2007 9:00 PM
 

Bill T said:

I have downloaded and installed Virtual PC 2007, but I am still getting an error message from the efp.msi install about not finding the virtual switch. Any ideas?
October 9, 2007 8:52 AM
 

EthanM said:

Hi Bill,

Something with Virtual PC 2007 didn't install correctly.  Have you done a reboot since the install?  Another test: try installing the Windows Mobile 6 emulator package in the second section, skipping the efp.msi file.

Thanks,
Ethan
October 9, 2007 7:23 PM
 

grindboy said:

Thanks man, I've spent a couple of hours trying to get this thing running and its all running smooth as silk thanks to your blog.

Cheers
October 21, 2007 10:15 AM
 

EthanM said:

Thanks, glad to hear that!
October 22, 2007 9:50 PM
 

TW said:

I an't seem to get the Windows5 Smartphone or the Windows6 Standard Images connected to the network. My netword card is configured in the Emulator V2. I set up GPRS connected to the Internet. When I go to IE, I just get a "Connecting" screen and it never connects.
November 9, 2007 4:46 PM
 

Lance said:

Does anybody know a way to get the emulator to default to "My Work Network"?  It is a pain in the rear to keep setting that.
December 10, 2007 4:41 PM
New Comments to this post are disabled

News

This is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified in the Terms of Use.

New! Would you like to suggest a topic for the Exchange team to blog about? Send suggestions to us.

Poll: