Thanks & Regards,
Shoeb
"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