benners Posted June 22, 2008 Share Posted June 22, 2008 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. Link to comment Share on other sites More sharing options...
danielkza Posted June 22, 2008 Share Posted June 22, 2008 (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 June 22, 2008 by danielkza Link to comment Share on other sites More sharing options...
archgriffin Posted June 22, 2008 Share Posted June 22, 2008 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. Link to comment Share on other sites More sharing options...
Richard Robertson Posted June 22, 2008 Share Posted June 22, 2008 You'll have to just hard code the version info in your script. You can't read the FileInstall-ed files without extracting them. Link to comment Share on other sites More sharing options...
benners Posted June 22, 2008 Author Share Posted June 22, 2008 Thanks all, I suspected I would have to include the info in the script Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now