bimleshsharma has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: How to get version number of any application installed on box
by marto (Cardinal) 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 (Priest) on Nov 23, 2012 at 21:58 UTC