Detect Pocket PC version in setup

A

Alok Sancheti

How can you detect the Pocket PC version in the installation program.
Basically I have on setup program which installs .NET, SQL CE and our
application.

But if the version is PPC 2003, I do not want to call the routine to install
..NET CF, but if it is PPC 2002, I do want to install .NET CF.

Thanks
 
S

Stan Adermann [Msft]

If you are using RAPI, then you can call CeGetVersionEx to determine the
device OS version. If you are using CeAppMgr.exe, then you would need to
restrict your .cab from installing by OS version in the .inf:

[CEDevice]
VersionMin = 3.000
VersionMax = 3.999

Stan Adermann
Microsoft
NET Compact Framework

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Alok Sancheti" <[email protected]>
| Subject: Detect Pocket PC version in setup
| Date: Wed, 15 Oct 2003 11:08:35 -0700
| Lines: 10
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: 64-52-19-24.client.cypresscom.net 64.52.19.24
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:36086
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| How can you detect the Pocket PC version in the installation program.
| Basically I have on setup program which installs .NET, SQL CE and our
| application.
|
| But if the version is PPC 2003, I do not want to call the routine to
install
| .NET CF, but if it is PPC 2002, I do want to install .NET CF.
|
| Thanks
|
|
|
 
A

Alok Sancheti

Using RAPI did work in my custom installer program. Thanks.

However changing the inf file did not work, because it is not the cab file
of my application which I do want to control when to install. Rather it is
the .NET framework which has the cab files alerady pre-built.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top