Having problems with the WM5 SDK on Vista?

I did! after installing the Windows Mobile 5.0 Pocket PC SDK and Smartphone SDKs, none of the project types appeared. Took me a while to figure it out and the answer is just a building away. At Building 118, Fernando Zandona a Program Manager in the Windows Mobile Product Group posted some quick fixes and "hacks" to fix the four nagging problems that developers are facing building Windows Mobile 5.0 applications on Vista.


Workaround 1: Activesync requirement during install & Vista
As you may know, Windows Vista comes with device synchronization technology in the box and it does not require Activesync to be installed to synchronize your device with the desktop - it is called Windows Mobile Device Center (WMDC).

WM 5.0 was designed to be supported only on Windows Server 2003 & Windows XP (no Vista at that time :-), and for those platforms, Activesync is required to allow application deployment to the device. The good thing is that it was implemented as a soft requirement: just click "ok" in the popup window and continue installation. You do not need to install AS on Vista.

Workaround 2: No Windows Mobile 5.0 Project Templates
During SDK installation, one of the scripts is requiring "elevated privileges" to execute correctly. If you have "User Account Control" (UAC) turned on, this script will silently fail and, although installation will apparently finish successfully, the project templates will not get installed.

How to work around it? Simple, just turn off UAC (Control Panel, User Accounts, Change Security Settings) and install or repair the SDK. You can turn UAC back on after installation.

Workaround 3: Unable to Create Native (C++) Projects
VC++ Project Wizards are pretty much HTML files + scripts - Visual Studio uses IE to render and present those "web pages" as a wizard. The problem is that, due to the new security model, IE7 does not trust some of those scripts; as a result you keep getting the "New Project" dialog and can't move forward on the wizard. The workaround here is to let IE know that the smart device VC++ wizard is a nice guy and ok to run.

You will need to open the registry entry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Ext\PreApproved

And add a new entry named: {D245F352-3F45-4516-B1E6-04608DA126CC}

Workaround 4: Unable to deploy/debug over Activesync
 This is the issue I like most 🙂 As we saw on item 1, Windows Vista comes with WMDC which substitutes Activesync - it acts like AS but it is not AS! That means there is "no information" about AS in a Vista box, in particular, the registry key that identifies Activesync as installed is not present - Visual Studio checks for that registry key before loading the appropriate component to deploy the application to the device, the registry is not there and the deployment fails - all components are ok, we are just missing the registry info...

So guess what? Let's create the missing registry entry!

Open the  registry entry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE Services

And add the following entries:

MajorVersion (DWORD) = 4
MinorVersion (DWORD) = 0

Read his whole post here: https://blogs.msdn.com/fzandona/archive/2006/08/01...

Comments (2)

  1. digucit says:

    i am running vista rc1 build5600, downloaded wmdc 3 beta, it instaled but nothing happens, only thing is that media player see the device but unable to off load gadets to it. Aslo it is a pity that my Jarjar iMate wm5 device doesnt have PAN, my old sybian Erricssons all had it..

    I know rc2 will most likely work but i missed the downlaod window, as i was only getting ready to install rc1, and windows incorrectly identified a scssi card driver problem

  2. Loke Uei says:

    Hiya. Once you have installed WMDC b3, you need to keep your device connected via USB and run Windows Update which will let you know that you have an update. Download and apply the update and you should have WMDC working.

Skip to main content