Jump to content

User Account Control


Recommended Posts

Good moring,

I'm having a simple script for installing a program without user interaction.

The setup file has no arguments for a silent install.

#RequireAdmin
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Res_requestedExecutionLevel=asInvoker
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
; This script requires full Administrative rights
Run("C:\STAGING\SOFTWARE\abc.exe")
WinWaitActive("Open File - Security Warning")
Send("{TAB}")
Send("{TAB}")
Send("{TAB}")
Send("{ENTER}")
Send("{TAB}")
Send("{TAB}")
Send("{TAB}")
WinWaitActive("Setup - NSI Alfresco Office Addins")
Send("{ENTER}")
WinWaitActive("Setup - NSI Alfresco Office Addins","Setup will install")
Send("{ENTER}")
WinWaitActive("Setup - NSI Alfresco Office Addins","Click instal to continue")
Send("{ENTER}")
WinWaitActive("Setup - NSI Alfresco Office Addins","Setup has finished")
Send("{ENTER}")

But when I run it, it will not pass the User Account Control windows.

What is the solution to pass it?

Many thanks in advance

Greetings

Lainkes

Link to comment
Share on other sites

On a side not, Microsoft prevents any application from interacting with the UAC warning dialog, so no, you can't do it in AutoIt, although there are ways around it without bringing up the prompt but that is considered malware behavior by my definition.

Link to comment
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
 Share

  • Recently Browsing   0 members

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