Sign in to follow this  
Followers 0
Guest Joerg

Asking For Program Versions

3 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

Thanks! It works fine!

Jörg

Share this post


Link to post
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
Sign in to follow this  
Followers 0