Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

How to get version number of any application installed on box

by bimleshsharma (Beadle)
on Nov 22, 2012 at 11:37 UTC ( #1005115=perlquestion: print w/ replies, xml ) Need Help??
bimleshsharma has asked for the wisdom of the Perl Monks concerning the following question:

I want to know which version of a application is installed. For example i want to know the version of adobe acrobat application installed in my system. Any help is much appreciated. I tried below code but it is not giving application version.

use Config; print "$Config{osvers}\n";

Comment on How to get version number of any application installed on box
Download Code
Re: How to get version number of any application installed on box
by marto (Chancellor) on Nov 22, 2012 at 11:44 UTC

    As I specified in Get version of installed OS, you could read the documetation for Config. You print the osversion and expect it to tell you the version number of Adobe Acrobat? At minimum make some effort to understand what the code you provide actually does. There's no way this module with that value will ever relate to anything other than the operating system. Consider searching the registry for the information you see. Win32::TieRegistry.

    Update: fixed typo.

      True, You are right. i am looking in your advised module. Thanks

Re: How to get version number of any application installed on box
by bulk88 (Priest) on Nov 23, 2012 at 02:55 UTC
    Since you are on Windows, if you have a EXE or DLL, the majority of them have a version number in them if you right click-properties-version tab. http://search.cpan.org/~jdb/Win32-0.45/Win32.pm#Win32::GetFileVersion(FILENAME) will get you that info API wise. You are using an API from version.dll to get that info. So google version.dll and Perl and maybe you will find more.

    Trying to extract the version number from MSI or the registry, I dont know about. You are venturing into the COM land.
Re: How to get version number of any application installed on box
by stefbv (Chaplain) on Nov 23, 2012 at 21:58 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1005115]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (14)
As of 2014-08-27 14:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (241 votes), past polls