Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
I've been struggling to find a way to get an exe's file version info from a Pocket PC (running Compact Framework 1.0) to a PC application (developed in VS2008, C#).

On the PPC I use the following:
System.Reflection.Assembly.GetExecutingAssembly().GetName.Version

to get the version string. I'm trying to retrieve this string from an application on the PC which transfers some files across using RAPI calls.

However, before the files are transferred from the Pocket PC to the PC, I'd like the application on the PC to check the version number of an executable on the Pocket PC.

All examples I've found so far are for C++ and use GetFileVersionInfo() and VerQueryValue().

Not sure how to do this in C#.

Is there a way I can use RAPI.Invoke() from the PC to call System.Reflection.Assembly.GetExecutingAssembly().GetName.Version on the Pocket PC?
Posted
Updated 18-Apr-11 14:54pm
v2

 
Share this answer
 
 
Share this answer
 
Hi Henry, thanks for the reply.

Sorry if I didn't make myself clear. I want to call a method from the PC to query the Pocket PC while it is docked and connected with ActiveSync.

So, from the PC, query the Pocket PC and get the version of an exe file on the Pocket PC.

Essentially, I have a utility program that copies files from the Pocket PC, but before I copy these files, I want to check the version of the exe on the Pocket PC from the utility program on the PC.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900