Sign in to follow this  
Followers 0
pvr02

Running an exe with admin priveleges and switches

3 posts in this topic

I am pretty new to writing these scripts. I don't think this one should be nearly as hard as i'm making it though. This is what I have so far:

RunAsSet("Administrator",@ComputerName,"password")

Run("cmd.exe")

send("setup.exe /S /v/qn")

RunAsSet()

So far it runs fine except it opens the command prompt and inputs: etup.exe /S /v/q

It doens't include the S in setup.

Can anyone point out the mistake that I am making?

Share this post


Link to post
Share on other sites



I am pretty new to writing these scripts. I don't think this one should be nearly as hard as i'm making it though. This is what I have so far:

RunAsSet("Administrator",@ComputerName,"password")

Run("cmd.exe")

send("setup.exe /S /v/qn")

RunAsSet()

So far it runs fine except it opens the command prompt and inputs: etup.exe /S /v/q

It doens't include the S in setup.

Can anyone point out the mistake that I am making?

RunAsSet("Administrator",@ComputerName,"password")
Run("cmd.exe")
Sleep ( 1000 )
send("setup.exe /S /v/qn")
RunAsSet()

that's one way, but maybe

RunAsSet("Administrator",@ComputerName,"password")
Run(@comspec & ' /c ' & "setup.exe /S /v/qn")
RunAsSet()

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

Can anyone point out the mistake that I am making?

The window does not exist when the s is sent.

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