Solved

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

Posted on 2011-03-09
4
790 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, (http://www.experts-exchange.com/articles/18084/Upgrading-to-Android-5-0-Lollipop.html) because one time I did this and I essentially had a bricked …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

911 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

23 Experts available now in Live!

Get 1:1 Help Now