Jump to content

Recommended Posts

Posted

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... :whistle:

thanks

Posted

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?

Posted

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 ....)

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
×
×
  • Create New...