Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

User Account Control


  • Please log in to reply
2 replies to this topic

#1 alainjanquart

alainjanquart

    Seeker

  • New Members
  • 1 posts

Posted 08 March 2012 - 08:28 AM

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.

AutoIt         
#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







#2 KaFu

KaFu

    Hey, it's just me, KhaFoo...

  • MVPs
  • 3,402 posts

Posted 08 March 2012 - 10:31 AM

Try to compile it with this directive:
#AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator

#3 CaptainClucks

CaptainClucks

    Unum Cavillator Spuria

  • Active Members
  • PipPipPipPipPipPip
  • 1,227 posts

Posted 11 March 2012 - 11:42 AM

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.
Spoiler

Warning: Posts by this user are subject to change or may disappear without notice.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users