CAB problem since WM5

I have created .CAB files (cabinet files) using Cabwiz.exe since Windows CE 2.11 for my mobile applications. It worked fine for Windows CE 2.11, PPC2000, PPC2002 and Windows Mobile 2003. But since Windows Mobile 5 (WM5) there exists a little problem with special characters like é (e acute). On WM5 Chinese Pocket PCs the .CAB files may not work entirely!

Current situation

Using Cabwiz.exe version 3.1.0.9386 and .inf files stored as ANSI because UNICODE is not supported by this Cabwiz version. Everything works perfect except for WM5.

The simple solution

Using Cabwiz.exe version 4.0.4332.0 and .inf files stored as UNICODE because in this Cabwiz version UNICODE is supported!

Sample:

; wm5cabtest.inf

; 1. é problem
; Cabwiz.exe 3.1.0.9386 –> 4.0.4332.0
; save .inf as Unicode

[Version]
Signature = "$Windows NT$"
Provider = "Harald-René Flasch"
CESignature = "$Windows CE$"

[CEStrings]
AppName="wm5cabtest"

; 2. solved WM5 warning message that the application was not designed for WM5
[CEDevice]
VersionMin=4.0
VersionMax=5.99
BuildMax=0xE0000000

[DefaultInstall]
AddReg = RegSettings

[SourceDisksNames]
1=,"Source 1",,.

[SourceDisksFiles]
wm5cabtest.inf=1

[DestinationDirs]
DefaultDestDir = 0,%InstallDir%

[CEStrings]
AppName="WM5 Cabinet test"
InstallDir=%CE1%\%AppName%

[RegSettings]
HKCU,Software\HfrSoft\wm5cabtest\Init,Test,0x00000000,René!
HKCU,Software\HfrSoft\wm5cabtest\Init,ScharfesS,0x00000000,Echtßupa!


MSDN

See also my MSDN thread. I got an answer but not the final solution. So I started investigating the problem and found the solution described in this blog. This .CAB file works for PPC2002, WM2003 and WM2005. It may also works for Windows CE 2.11 and even WM6 (with warning message – see [CEDevice]) but I have no devices or emulators for tests.

About hfrmobile

Nice guy but with a sarcastic type of humor. I have combined hobby and profession and I am happy about this. At the moment I am holding MCP, MCSE (NT 4.0), MCTS and MCPD certificates. Having experience in developing software for more than 15 years. Started learning programming using Pascal, Assembler, C/C++. Also having experience with non-Microsoft products / programming languages (e.g. PHP). Most experiences at the moment: MySQL, MS-SQL, PL/SQL, ASP.NET, C#, Silverlight (Windows Phone) and WPF.
This entry was posted in Computer und Internet. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s