Jump to content

Recommended Posts

Posted

I am trying to use RUNWAIT to run an install.  When I run the script, the lines under RUNWAIT run, but the program does not install.  If I run the install from a command line, the UAC will ask for permission.

I do have #RequireAdmin on the top of my script, and when I run it, UAC prompts.  Shouldn't everything the script do everything as admin after that?

Posted (edited)

What is the return value you get from the RunWait function?
 

$iResult = RunWait(....
$iError = @‌error
msgbox(0,"RunWait Result", "Return Value: " & $iResult & @‌crlf & "Error Code: " & $iError)

 

Edited by spudw2k
Posted (edited)

Hmmm....
What is the path to the installer?  Is it local to the machine or on a share somewhere?

Just for troubleshooting...what happens if you change the RunWait to simply open a command prompt and then manually run the installer from the CMD prompt?

Edited by spudw2k
Posted

It appears to be something else.  When I was testing silent installs CCleaner used /S, now that is not working even manually.  I swear it was working manually.

Sorry to be a pest!

Thanks!

Posted

It appears that CCleaner is particular about renaming it's install file.  So the silent switch worked when I tested it, but doesn't when I renamed it.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...