CF is installed?

  • Thread starter Thread starter Taryon
  • Start date Start date
Taryon,

I assume you may want to check it manually. If so, click on Start / Programs
/ File Explorer then set it to My Device, the topmost folder. Tap on the
Windows folder and check to see if you have a file CGACUTIL. If it is not
there then you do not have .NET CF installed. If it is there then .NET CF
has been installed. Tap on that file to see the build number of the .NET CF.
The versions of CF is as follows:

RTF = 1.0.2268.00
SP1 = 1.0.3111.00
SP2 = 1.0.3316.00


Regards,
Neville Lang
 
Sorry Neville! I need to know it inside my desktop application to know if i
need to install it before install my pocket app. I dont know if this is the
best way but i can check if the CGAUTIL is present in the windows folder
from my desktop app.
anyway, thx. helpful!
 
Taryon,

CGACUTIL, as far as I know is for the .NET CF and is not on the desktop.

On the desktop, maybe the quickest way to check whether the full .NET
Framework is installed using Windows Explorer, is to look in the C:\WINDOWS
folder and check if there is a folder .NET Framework. If there is such a
folder then it is most likely that the .NET Framework has been installed the
desktop. Looking inside that folder will reveal which version of the full
framework you have. Version 1.0 is likely to display a folder named
v1.0.3705. If the computer has been updated to the latest version 1.1 then
you will also see another folder v1.1.4322. There are also relevant
Registry keys for the .NET Framework but I figure this approach might be the
fastest.

Regards,
Neville Lang
 
Yes Neville. i know.
Look. I need to know if the CF is installed on the device before i install
my app. ok? well, according you, i can do this checking if the CGAUTIL.exe
is present in the device windows folder. I can do it using the OPENNETCF
communication lib.

On my desktop, i need to know where is the CF installer. I think the best
way is get the folder from
HKLH/SOFTWARE/MICROSOFT/WINDOWS/CURRENTVERSION/INSTALLER/FOLDER
looking for "Microsoft .NET Compact Framework 1.0 SP2" where i can find the
NCFSetup.exe, or i can have the CF installer in my desktop directory and run
it when the device is connected.
There is another way?
 
Taryon,

What you describe is a different question. A desktop computer does not
contain the .NET CF installer.

If the Pocket PC contains the Pocket PC 2000 or 2002 operating system then
you need to install the .NET CF separately. This can be done in at least two
ways. If you are developing an app for a single PPC then when you deploy an
app from VS 2003 then it will install the .NET CF for you. If you wish to
deploy the .NET CF for any number of Pocket PCs then you need to download
the .NET CF redist CAB files onto the Pocket PC located at Microsoft's
website via MSDN.

The newer WM2003 operating system Pocket PCs already has .NET CF installed,
at least the first version. You may need to programmatically download the
latest SP2 version if you intend deploying your app on a wider scale.

For my PPC app to the general public, I deploy the .NET CF SP2 redist from
my CD if I programmatically detect in my installer that the PPC does not
have it installed or if it is not up to SP2. Of course, you need to make all
of this happen in your own installer.

Regards,
Neville Lang
 
Taryon,

Even if the CF is installed on the device, it might not be the same service
patch level that you used when you tested your app. I think the safest thing
is to always install the CF along with your app - anyway that's what I'm
doing. I do this by copying the correct cab file to the device and launching
it.
 
right. is what im doing.
thx all!

Ginny Caughey said:
Taryon,

Even if the CF is installed on the device, it might not be the same service
patch level that you used when you tested your app. I think the safest thing
is to always install the CF along with your app - anyway that's what I'm
doing. I do this by copying the correct cab file to the device and launching
it.
 
Geoff,

This item is timely as I have just been doing this very thing a few weeks
ago.

The item mentions the RAPI function CeFindAllFiles(). I spent many hours
trying to get that function to work in C# with no success. For all my
attempts, only the structure of first file found would be returned even
though the count did display the correct figure.

An earlier post I found on this topic, I think from this NG, indicated that
this function does not seem to work with ActiveSync v3.7.1 but indicated
that it worked again when ActiveSync was downgraded to v3.5. I only have
v3.7.1 but decided to abandon getting it working. I ended up using the pair
CeFindFirstFile() and CeFindNextFile() to solve the problem. I understand
that the CeFindAllFiles function runs faster than these pair when returning
all files so that is why I wanted to use it.

Has anyone else experienced this problem?

Regards,
Neville Lang
 
Back
Top