mcfly Posted February 9, 2007 Posted February 9, 2007 Hi everyone I'm using AutoIt at work and I'm starting now with this...so I need to run an external setup, as administrator and only execute it if the hash file is the same of the original setup. Can someone post an example for me or give me some clues, I'm lost here...and I need help...pleeeeeease... thanks
evilertoaster Posted February 9, 2007 Posted February 9, 2007 (edited) are you meaning just a 'RunAsSet()" comamnd? Where is the hash coming from that you want to compare it to? Edited February 9, 2007 by evilertoaster
mcfly Posted February 9, 2007 Author Posted February 9, 2007 Yes the 'RunAsSet()" and then the command to run an external setup in the next line...just to execute for example Setup.exe that is located in my desktop... For the hash I have Md5.exe, so I run setup.exe in the md5.exe and save the result inside my script, how I run md5.exe again every time I run my script and compare the two?
evilertoaster Posted February 9, 2007 Posted February 9, 2007 can run the md5.exe like - Run("md5.exe somefile") grap however it gives its output (stdoutread or what-have-you) and just comapare it to a hardcoded hash. (if $hashResult="AFF34E2063B35CJosMomWhatever" then ....)
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