Jump to content

Asking For Program Versions


Guest Joerg
 Share

Recommended Posts

Hello!

What is the best way to ask for a Version of a program in a Skript?

I want to install the Update 6.02 for Adobe Reader and this Update should only be installed if the Version 6.01 is installed.

My suggestion was to aks for a registry key (RegRead), but i dont know if this is the best way.

Thanks,

Jörg

Link to comment
Share on other sites

You can try FileGetVersion function and test version of main executable AcroRd32.exe. Something like:

$ver = FileGetVersion ("C:\Program Files\Adobe\Acrobat 6.0\Reader\AcroRd32.exe")
if StringLeft($ver, 5) == "6.0.1" then 
{install new}
endif
Edited by Kot
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...