Ask a Question

how to get product version of an exe

SOLVED
hc_vinod
Occasional Contributor

how to get product version of an exe

Hi , 

 

I need to extra prodct version of an exe i am able to get version nmber bt not product Version number

 

Kindly help me extarcting prodct version

 

3 ACCEPTED SOLUTIONS

Accepted Solutions
Colin_McCrae
Community Hero

Re: how to get product version of an exe

You don't state the language you're using.

 

However, there are answers on here: http://stackoverflow.com/questions/2976734/how-to-retrieve-a-files-product-version-in-vbscript

 

Showing how to do it in VBScript.

 

It you are using a different scripting language, the bulk of it should be the same (the important bits anyway - the object and it;s properties). You'll just to translate it accordingly.

View solution in original post

Colin_McCrae
Community Hero

Re: how to get product version of an exe

Amazing what a couple of minutes on google can turn up. (It was the first search result)

 

Smiley Wink

View solution in original post

HKosova
Moderator

Re: how to get product version of an exe

TestComplete has a built-in solution for that:

aqFileSystem.GetFileInfo(path).VersionInfo.ProductFullVersion.

 

// JScript
var strPath = "C:\\Windows\\notepad.exe" var verInfo = aqFileSystem.GetFileInfo(strPath).VersionInfo; Log.Message(verInfo.ProductFullVersion); 

 


Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

5 REPLIES 5
Colin_McCrae
Community Hero

Re: how to get product version of an exe

You don't state the language you're using.

 

However, there are answers on here: http://stackoverflow.com/questions/2976734/how-to-retrieve-a-files-product-version-in-vbscript

 

Showing how to do it in VBScript.

 

It you are using a different scripting language, the bulk of it should be the same (the important bits anyway - the object and it;s properties). You'll just to translate it accordingly.

View solution in original post

hc_vinod
Occasional Contributor

Re: how to get product version of an exe

Amazing !!! it works

Colin_McCrae
Community Hero

Re: how to get product version of an exe

Amazing what a couple of minutes on google can turn up. (It was the first search result)

 

Smiley Wink

View solution in original post

HKosova
Moderator

Re: how to get product version of an exe

TestComplete has a built-in solution for that:

aqFileSystem.GetFileInfo(path).VersionInfo.ProductFullVersion.

 

// JScript
var strPath = "C:\\Windows\\notepad.exe" var verInfo = aqFileSystem.GetFileInfo(strPath).VersionInfo; Log.Message(verInfo.ProductFullVersion); 

 


Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

hc_vinod
Occasional Contributor

Re: how to get product version of an exe

Thanks Hkosova,

 

i was using ProdctVersion instead of ProductFullVersion

cancel
Showing results for 
Search instead for 
Did you mean: