Solved

How can I determine .NET CF version using (or not using) cgacutil.exe without a popup answer?

Posted on 2011-03-09
4
776 Views
Last Modified: 2013-12-27
Hi,

I want to get the .NET CF version off of several thousand CE 5.0 devices at our remote facilities. Using a tool we have, I can send them all dos-like scripts and have them report back. I want to use cgacutil.exe to get the answer, but instead of reporting to stdout or a file, the utility pops up a message box with the answer(s). Is there a command line option for cgacutil.exe that will let me redirect the output? I can't have all of the devices popping up that window. It would be a support nightmare.

I'm open to other ways to grab the information as well as long as I can execute them on a command line and need no end-user intervention.

Thanks,
Bret
0
Comment
Question by:FOS-Bret
  • 2
  • 2
4 Comments
 
LVL 16

Expert Comment

by:hjgode
ID: 35091253
Hello

your code might just check the registry for the noted CF version and pull that: http://bytes.com/topic/net/answers/764450-check-compact-framework-version-registry

Or you go on and write a tool to read version (GetFileVersionInfo()) from mscoree.dll or one other essential CF runtime DLL.
0
 

Author Comment

by:FOS-Bret
ID: 35097740
Thanks, but I really need a way to check without having to deploy an application first. I'd like to do it with a command line utility that already exists on the device. That's why I'm looking at cgacutil.exe. I'd settle for a simple listing of that utility's command line options, but I can't even find that.
0
 
LVL 16

Accepted Solution

by:
hjgode earned 125 total points
ID: 35098220
I am sorry but I fear there is no such cmdline option to have cgacutil or any other existing tool of the standard windows mobile tool set to dump the CF version into a file.

As you wrote your are using a global tool to execute scripts remotely, these mobile management tools most offer a way to read registry values and do something with them (store in file or send to management server). They even provide a way to send down applications and start them remotely.

soti example: http://www.soti.net/mc/help/content/manager/CustomData.htm
wavelink avalanche cannot do so directly and needs a package build with a tool to retrieve reg key.

Are you talking about SOTI, WaveLink or similar remote management tool? It would be easier to help you, if we know the name.

regards

Josef
0
 

Author Closing Comment

by:FOS-Bret
ID: 35098651
We're using a specialized branded version of the SOTI product (Psion Teklogix Mobile Control Manager.) I'll take a look at the documentation you referenced. I'm sure we can get something done there. I was just hoping for a small script type solution. Thanks for your time. I appreciate it.
-Bret
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
With Windows Embedded Handheld, called Windows Mobile, Microsoft re-designed the user interface. The Start Icon moved down to the bottom, inside the menu bar area.   If you need to hide the Start Icon and/or the SIP (soft input panel, softwar…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now