Sign in to follow this  
Followers 0
mcfly

I'm new, how can I run an external program as administrator...

4 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

are you meaning just a 'RunAsSet()" comamnd? Where is the hash coming from that you want to compare it to?

Edited by evilertoaster

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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

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