Sign in to follow this  
Followers 0
benners

Check file version included with FileInstall

5 posts in this topic

Is there a way to check the size\modified date etc of a file included into an AutoIt exe with FileInstall without extracting?. I want to compare a file already on the system with one included in the exe and if the one on the system is older then extract and overwrite.

If not I can always manually add the files information in the script and compare the two that way.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Is there a way to check the size\modified date etc of a file included into an AutoIt exe with FileInstall without extracting?. I want to compare a file already on the system with one included in the exe and if the one on the system is older then extract and overwrite.

If not I can always manually add the files information in the script and compare the two that way.

You can use another script to hardcode the file version on the full script at compile time,and compare that string with the version in the user's system. Edited by danielkza

Share this post


Link to post
Share on other sites

I haven't used it, and currently I'm not on a windows box with AutoIT installed, but I believe the function FileGetVersion might do what you want. If it does what I am thinking, you could have it check the file you are doing at compile time, and record that data, to compare when you run it against the other, probably within an If Then statement to "install" the file or not when executed?

Sorry for the guessing in that, but it might be helpful.


"Human kind cannot gain anything without first giving something in return, to obtain; something of equal value must be lost."The Help File is truly your friend.

Share this post


Link to post
Share on other sites

You'll have to just hard code the version info in your script. You can't read the FileInstall-ed files without extracting them.

Share this post


Link to post
Share on other sites

Thanks all, I suspected I would have to include the info in the script

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