Query SP version

T

Thore Berntsen

Is there any way I can query the Service pack version (and version of the
Compact Framework for that matter)that I have installed on a PocketPC.

Thore Berntsen
Norway
 
P

Peter Foot [MVP]

Use
Environment.Version
Which will return a System.Version containing the Major, Minor, Build and
revision versions. Currently available versions are:-
RTM = 1.0.2268.0
SP1 = 1.0.3111.0
SP2 (rerelease) = 1.0.3316.0

Peter
 
C

chris-s

Try this...

public static string CFSPVersion()

{

string cfVer = System.Environment.Version.ToString();

if (cfVer == "1.0.2268.0")

return "Base";

else

if (cfVer == "1.0.3111.0")

return "SP1";

else

if (cfVer == "1.0.3316.0")

return "SP2";

else

return "";

}



Chris.
 
T

Tore Stensby

Thore Berntsen said:
Is there any way I can query the Service pack version (and version of the
Compact Framework for that matter)that I have installed on a PocketPC.

Thore Berntsen
Norway

Hello Norway...

During the developement of our .net CF-prosject i have put up a web-site
where i post aricles about different .net CF issues. (Querying the
SP-version is one)

Feel free to take a look:
www.stensby.com/netcf (In Norwegian)


Tore Stensby
Also Norway
 

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

Similar Threads

Compact framework 2.o 4
Notifications 1
Service Pack 2.0 for Compact Framework? 1
Formatting storage card 1
Loaded Assemblies 2
Detecting network connection 5
SMS notification 7
OpenNETCF framework and VS2005 2

Top