esullivan

Windows 10 and UAC

8 posts in this topic

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?

Share this post


Link to post
Share on other sites



#2 ·  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

Share this post


Link to post
Share on other sites

Both return 0

Share this post


Link to post
Share on other sites

#4 ·  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

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

Yup, thanks man.

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