Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to prevent pocketpc setup from running on smartphone

0 views
Skip to first unread message

shoeb

unread,
Jul 3, 2009, 3:18:36 AM7/3/09
to

Hi,
Some of my customers install wrong version of my apps on their phones
e.g. pocketpc version on smartphone. the apps runs but not functions
correctly . i want to abort the setup if platform does not match with the
msi. Please help.

Thanks & Regards,
Shoeb


Christopher Fairbairn [MVP]

unread,
Jul 7, 2009, 10:46:09 PM7/7/09
to
Hi,

"shoeb" <sh...@octro.com> wrote in message
news:ulzq856%23JHA...@TK2MSFTNGP02.phx.gbl...

I'm not sure of the best approach for doing this from a MSI on the desktop,
but it might be worth investigating the way you build your CAB file(s).

Within the [CEDevice] section of your *.INF file you can set the
UnsupportedPlatforms parameter to provide a list of platforms that should
refuse to install the CAB file.

i.e. something like the following would stop a CAB file being installed on a
Windows Mobile Standard device:

[CEDevice]
UnsupportedPlatforms=Smartphone
VersionMin=4.0
VersionMax=6.99
BuildMax=0xE0000000

See MSDN (http://msdn.microsoft.com/en-us/library/aa924393.aspx) for
additional documentation on this feature.

If the user attempts to install a CAB file with this additional
"UnsupportedPlatforms" setting on a smartphone device they will get an error
message (although it's not too friendly).

In theory making this change (and registering the CAB with CeAppMgr.exe)
should be enough to get ActiveSync to refuse to install the CAB, or enable
you to register multiple CAB files, one customised for each platform.

Hope this helps,
Christopher Fairbairn


0 new messages