Sign in to follow this  
Followers 0

User Account Control

3 posts in this topic

Posted

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

Share this post


Link to post
Share on other sites



Posted

Try to compile it with this directive:

#AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator

Share this post


Link to post
Share on other sites

Posted

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.

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

  • Recently Browsing   0 members

    No registered users viewing this page.