Hi,

I have 2 cab files. One for PPC and one for SP. I am trying to prevent the
cab for PPC from installing into the SP and vice versa. People have
mentioned about "UnsupportedPlatforms" in the .inf file.

PPC .inf --UnsupportedPlatforms = "HPC","Jupiter","SmartPhone"

SP .inf --UnsupportedPlatforms = "HPC","Jupiter","Pocket PC"

I added this into my .inf files. As a result, SP prevented the cab file for
the PPC to be installed on the device. On the other hand, the PPC did not
prevent the cab file for the SP to be installed. Does anyone know if there
is another way to prevent this from happening?

Thanks,
JL

Re: UnsupportedPlatforms by Lao

Lao
Tue Apr 04 16:11:15 CDT 2006

Check here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/guide_ppc/html/ppc_programming_pocket_pc_2002_qxix.asp

Specifically, UnsupportedPlatforms, VersionMin, and VersionMax are
deprecated in Windows Mobile 2003 software for Pocket PCs. Their use is
not recommended. Windows Mobile 2003 does not check VersionMax for
application installations. Instead, use PlatformString, PlatformMin,
and PlatformMax, as used in the Wndows Mobile 2003 example.

The other thing you can do is to write a SetupDLL. In the Install_Init
function, check the platform and returns an error if the platform does
not match.

---
Lao K
Windows Mobile Pocket PC Smartphone Programming Hints and Tips
http://windowsmobilepro.blogspot.com


RE: UnsupportedPlatforms by mobilemobile

mobilemobile
Wed Apr 05 09:35:03 CDT 2006

Have you tried [CEDevice] or [Platform] sections in INF file?

"JL" wrote:

> Hi,
>
> I have 2 cab files. One for PPC and one for SP. I am trying to prevent the
> cab for PPC from installing into the SP and vice versa. People have
> mentioned about "UnsupportedPlatforms" in the .inf file.
>
> PPC .inf --UnsupportedPlatforms = "HPC","Jupiter","SmartPhone"
>
> SP .inf --UnsupportedPlatforms = "HPC","Jupiter","Pocket PC"
>
> I added this into my .inf files. As a result, SP prevented the cab file for
> the PPC to be installed on the device. On the other hand, the PPC did not
> prevent the cab file for the SP to be installed. Does anyone know if there
> is another way to prevent this from happening?
>
> Thanks,
> JL
>
>
>
>

Re: UnsupportedPlatforms by JL

JL
Wed Apr 05 15:51:02 CDT 2006

Thanks for pointing that out.

This what my .inf for smartphone looks like:

[CEDevice.SPr_ARM_300] ; ARM Rapier with OS >= 3.0
ProcessorType=2577
UnsupportedPlatforms = "HPC","Jupiter","Pocket PC"
VersionMin = 3.00
VersionMax = 100
BuildMax=0xE0000000

[Platform.MS.Smartphone]
PlatformString=Smartphone
PlatformMin=3.00
PlatformMin=5.99


It seems to stop the cab for Sp from installing on PPC prior to Windows
Mobile 5.0. Any ideas?

"Lao K" wrote:

> Check here:
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/guide_ppc/html/ppc_programming_pocket_pc_2002_qxix.asp
>
> Specifically, UnsupportedPlatforms, VersionMin, and VersionMax are
> deprecated in Windows Mobile 2003 software for Pocket PCs. Their use is
> not recommended. Windows Mobile 2003 does not check VersionMax for
> application installations. Instead, use PlatformString, PlatformMin,
> and PlatformMax, as used in the Wndows Mobile 2003 example.
>
> The other thing you can do is to write a SetupDLL. In the Install_Init
> function, check the platform and returns an error if the platform does
> not match.
>
> ---
> Lao K
> Windows Mobile Pocket PC Smartphone Programming Hints and Tips
> http://windowsmobilepro.blogspot.com
>
>

RE: UnsupportedPlatforms by JL

JL
Wed Apr 05 17:30:02 CDT 2006

This is what my .inf file for the SP looks like:

[CEDevice.Stinger_ARM_300] ; ARM Rapier with OS >= 3.0
ProcessorType=2577
UnsupportedPlatforms = "HPC","Jupiter","Pocket PC"
VersionMin = 3.00
VersionMax = 100
BuildMax=0xE0000000

[Platform.MS.Smartphone]
PlatformString=Smartphone
PlatformMin=3.00
PlatformMin=5.99

It would stop all PPC prior to WM5 from installing the SP cab. Any ideas
why it lets PPC WM5 devices to take a SP cab?

Thanks

"mobilemobile" wrote:

> Have you tried [CEDevice] or [Platform] sections in INF file?
>
> "JL" wrote:
>
> > Hi,
> >
> > I have 2 cab files. One for PPC and one for SP. I am trying to prevent the
> > cab for PPC from installing into the SP and vice versa. People have
> > mentioned about "UnsupportedPlatforms" in the .inf file.
> >
> > PPC .inf --UnsupportedPlatforms = "HPC","Jupiter","SmartPhone"
> >
> > SP .inf --UnsupportedPlatforms = "HPC","Jupiter","Pocket PC"
> >
> > I added this into my .inf files. As a result, SP prevented the cab file for
> > the PPC to be installed on the device. On the other hand, the PPC did not
> > prevent the cab file for the SP to be installed. Does anyone know if there
> > is another way to prevent this from happening?
> >
> > Thanks,
> > JL
> >
> >
> >
> >

Re: UnsupportedPlatforms by r_z_aret

r_z_aret
Thu Apr 06 17:26:53 CDT 2006

On Tue, 4 Apr 2006 13:11:02 -0700, JL <JL@discussions.microsoft.com>
wrote:

>Hi,
>
>I have 2 cab files. One for PPC and one for SP. I am trying to prevent the
>cab for PPC from installing into the SP and vice versa. People have
>mentioned about "UnsupportedPlatforms" in the .inf file.

I have an analogous problem. I'm not supporting Smartphone. But I am
supporting Pocket PCs and several industrial devices that are
something else. So I finally modified my setup program to do all the
work itself, rather than using CeAppMgr. I got the relevant info from
a 7 Feb 05 thread called "How can I tell which OS Platform a CE device
is using?" in this newsgroup.


>
>PPC .inf --UnsupportedPlatforms = "HPC","Jupiter","SmartPhone"
>
>SP .inf --UnsupportedPlatforms = "HPC","Jupiter","Pocket PC"
>
>I added this into my .inf files. As a result, SP prevented the cab file for
>the PPC to be installed on the device. On the other hand, the PPC did not
>prevent the cab file for the SP to be installed. Does anyone know if there
>is another way to prevent this from happening?
>
>Thanks,
>JL
>
>
>

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com

Re: UnsupportedPlatforms by JL

JL
Wed Apr 12 13:45:02 CDT 2006

Thanks Robert!

I got the setup to get me the device type. I'm new at this, so I was just
wondering if there's a way to send information from the setup.dll up to the
desktop? For exmaple, I have a pop up message on the device telling the user
that they got the wrong cab. Once they hit "OK", I want that information to
be sent back up to the desktop and kill the installation on the desktop. I'm
using InstallShield. I don't think there is, but just in case you know of a
way. Thanks in advance.



"r_z_aret@pen_fact.com" wrote:

> On Tue, 4 Apr 2006 13:11:02 -0700, JL <JL@discussions.microsoft.com>
> wrote:
>
> >Hi,
> >
> >I have 2 cab files. One for PPC and one for SP. I am trying to prevent the
> >cab for PPC from installing into the SP and vice versa. People have
> >mentioned about "UnsupportedPlatforms" in the .inf file.
>
> I have an analogous problem. I'm not supporting Smartphone. But I am
> supporting Pocket PCs and several industrial devices that are
> something else. So I finally modified my setup program to do all the
> work itself, rather than using CeAppMgr. I got the relevant info from
> a 7 Feb 05 thread called "How can I tell which OS Platform a CE device
> is using?" in this newsgroup.
>
>
> >
> >PPC .inf --UnsupportedPlatforms = "HPC","Jupiter","SmartPhone"
> >
> >SP .inf --UnsupportedPlatforms = "HPC","Jupiter","Pocket PC"
> >
> >I added this into my .inf files. As a result, SP prevented the cab file for
> >the PPC to be installed on the device. On the other hand, the PPC did not
> >prevent the cab file for the SP to be installed. Does anyone know if there
> >is another way to prevent this from happening?
> >
> >Thanks,
> >JL
> >
> >
> >
>
> -----------------------------------------
> To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
>
> Robert E. Zaret, eMVP
> PenFact, Inc.
> 20 Park Plaza, Suite 478
> Boston, MA 02116
> www.penfact.com
>

Re: UnsupportedPlatforms by r_z_aret

r_z_aret
Wed Apr 12 17:02:35 CDT 2006

On Wed, 12 Apr 2006 11:45:02 -0700, JL <JL@discussions.microsoft.com>
wrote:

>Thanks Robert!
>
>I got the setup to get me the device type. I'm new at this, so I was just
>wondering if there's a way to send information from the setup.dll up to the
>desktop? For exmaple, I have a pop up message on the device telling the user
>that they got the wrong cab. Once they hit "OK", I want that information to
>be sent back up to the desktop and kill the installation on the desktop. I'm
>using InstallShield. I don't think there is, but just in case you know of a
>way. Thanks in advance.

Code running on a handheld has no direct way of communicating with a
desktop. The closest I can think of is file manipulation via shared
file or ftp.

If you're writing your own setup, and it is "running" CAB files, then
your setup can use RAPI functions to monitor changes. This would still
be indirect, but not quite as indirect as with files.


>
>
>
>"r_z_aret@pen_fact.com" wrote:
>
>> On Tue, 4 Apr 2006 13:11:02 -0700, JL <JL@discussions.microsoft.com>
>> wrote:
>>
>> >Hi,
>> >
>> >I have 2 cab files. One for PPC and one for SP. I am trying to prevent the
>> >cab for PPC from installing into the SP and vice versa. People have
>> >mentioned about "UnsupportedPlatforms" in the .inf file.
>>
>> I have an analogous problem. I'm not supporting Smartphone. But I am
>> supporting Pocket PCs and several industrial devices that are
>> something else. So I finally modified my setup program to do all the
>> work itself, rather than using CeAppMgr. I got the relevant info from
>> a 7 Feb 05 thread called "How can I tell which OS Platform a CE device
>> is using?" in this newsgroup.
>>
>>
>> >
>> >PPC .inf --UnsupportedPlatforms = "HPC","Jupiter","SmartPhone"
>> >
>> >SP .inf --UnsupportedPlatforms = "HPC","Jupiter","Pocket PC"
>> >
>> >I added this into my .inf files. As a result, SP prevented the cab file for
>> >the PPC to be installed on the device. On the other hand, the PPC did not
>> >prevent the cab file for the SP to be installed. Does anyone know if there
>> >is another way to prevent this from happening?
>> >
>> >Thanks,
>> >JL
>> >
>> >
>> >
>>
>> -----------------------------------------
>> To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
>>
>> Robert E. Zaret, eMVP
>> PenFact, Inc.
>> 20 Park Plaza, Suite 478
>> Boston, MA 02116
>> www.penfact.com
>>

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com