Progh0st Posted January 8, 2016 Posted January 8, 2016 (edited) Hello everyone i need help trying to automate file installation. I'm having issues clicking accept button. I tried with a software called Silent Install Builder and it does it with no problem, but autoit i can't =(. I also notice CLASS:#32770 is used by mutiple apps on windows ..This is all the info. >>>> Window <<<<Title: Class: #32770Position: 862, 285Size: 596, 422Style: 0x94C800CCExStyle: 0x00010109Handle: 0x0000000000340252>>>> Control <<<<Class: Internet Explorer_ServerInstance: 1ClassnameNN: Internet Explorer_Server1Name: Advanced (Class): [CLASS:Internet Explorer_Server; INSTANCE:1]ID: Text: Position: 0, 0Size: 590, 395ControlClick Coords: 526, 371Style: 0x56000000ExStyle: 0x00000000Handle: 0x00000000002604DC>>>> Mouse <<<<Position: 1391, 682Cursor ID: 0Color: 0xECECEC>>>> StatusBar <<<<>>>> ToolsBar <<<<>>>> Visible Text <<<<>>>> Hidden Text <<<<;What i have tried (window is open) ControlSend("[CLASS:#32770]", "", "[CLASS:Internet Explorer_Server; INSTANCE:1]", "{ENTER}") ControlSend("[CLASS:#32770]", "", "", "{ENTER}") ControlClick("[CLASS:#32770]", "", "[CLASS:Internet Explorer_Server; INSTANCE:1]", "left", 1, 544, 400) ;using client coords ControlClick("[CLASS:#32770]", "", "", "left", 1, 544, 400) ;using client coords Send("{ENTER}") ;All has failed Am i doing something wrong? Edited January 8, 2016 by Progh0st
InunoTaishou Posted January 8, 2016 Posted January 8, 2016 I don't know what software you're trying to install but most (if not all) software has some unattended parameter you can send it when running it. Mozilla Firefox for example.Silent Install Builder is probably sending the parameter to the exe when installing the software you dictate.
Progh0st Posted January 8, 2016 Author Posted January 8, 2016 (edited) I don't know what software you're trying to install but most (if not all) software has some unattended parameter you can send it when running it. Mozilla Firefox for example.Silent Install Builder is probably sending the parameter to the exe when installing the software you dictate.How can i find that parameter using autoit like Silent Install Builder does. Silent Install Builder can automate basically anything. Edited January 8, 2016 by Progh0st
InunoTaishou Posted January 9, 2016 Posted January 9, 2016 You would have to find out the parameter to pass the install file yourself, unless someone here would know the software and its parameter already. But really this isn't an autoit thing, you can just run the exe in cmd and the parameter, you can do the same thing in a batch file or just run the installer + parameter in cmd manually.Some install software doesn't support command arguments for unattended/silent install, in which case you would have to use a script to go through the manual install without you doing anything.Try to find the unattended/silent install parameter first, if it's not available control send and control click is the next step.
Progh0st Posted January 9, 2016 Author Posted January 9, 2016 You would have to find out the parameter to pass the install file yourself, unless someone here would know the software and its parameter already. But really this isn't an autoit thing, you can just run the exe in cmd and the parameter, you can do the same thing in a batch file or just run the installer + parameter in cmd manually.Some install software doesn't support command arguments for unattended/silent install, in which case you would have to use a script to go through the manual install without you doing anything.Try to find the unattended/silent install parameter first, if it's not available control send and control click is the next step.I tried what you said, .exe is type NSIS so i ran a batch file to install silent mode. The .exe open but didn't install, i guess this method won't work.
InunoTaishou Posted January 9, 2016 Posted January 9, 2016 What exactly is the software you're installing? I don't know what NSIS is but when I googled NSIS silent install and this was in the results
Progh0st Posted January 9, 2016 Author Posted January 9, 2016 (edited) What exactly is the software you're installing? I don't know what NSIS is but when I googled NSIS silent install and this was in the resultsIts just a MediaPlayer (VLC) installer (online). The Nullsoft Installer (NSIS) is just a type of installation, like Windows Installer (MSI) and InstallShield. You run a batch file and install unattended with command lines, but unfortunately this method doesn't work for me. Edited January 9, 2016 by Progh0st
willichan Posted January 9, 2016 Posted January 9, 2016 (edited) The following has the command line to do an unattended install of VLC.https://wiki.videolan.org/Documentation:Installing_VLC/#AlternativeIf you are using a valid VLC installation from videolan.org, then this should work. If not, then we can look further into how AutoIt (un)friendly the installer is.----------I downloaded and installed VLC 2.2.1. I did not see the[CLASS:Internet Explorer_Server; INSTANCE:1]that you were getting. Are you perhaps trying to install this to a remote system through a webtop client? You will probably have lots of problems if this is a webtop client. Edited January 9, 2016 by willichan Additional information My UDFs: Barcode Libraries, Automate creation of any type of project folder, File Locking with Cooperative Semaphores, Inline binary files, Continue script after reboot, WinWaitMulti, Name Aggregator, Enigma, CornedBeef Hash
Progh0st Posted January 9, 2016 Author Posted January 9, 2016 (edited) The following has the command line to do an unattended install of VLC.https://wiki.videolan.org/Documentation:Installing_VLC/#AlternativeIf you are using a valid VLC installation from videolan.org, then this should work. If not, then we can look further into how AutoIt (un)friendly the installer is.----------I downloaded and installed VLC 2.2.1. I did not see the[CLASS:Internet Explorer_Server; INSTANCE:1]that you were getting. Are you perhaps trying to install this to a remote system through a webtop client? You will probably have lots of problems if this is a webtop client.I think this is a webtop client. I am 95% sure =(I'm not using the official installer, i have a custom installer from a website that gives you more options to install, not only limited to VLC Edited January 9, 2016 by Progh0st
willichan Posted January 9, 2016 Posted January 9, 2016 You will probably need to become very familiar with the ie.au3 UDF (comes with AutoIt) then, since what you are really automating is an IE window. My UDFs: Barcode Libraries, Automate creation of any type of project folder, File Locking with Cooperative Semaphores, Inline binary files, Continue script after reboot, WinWaitMulti, Name Aggregator, Enigma, CornedBeef Hash
Progh0st Posted January 9, 2016 Author Posted January 9, 2016 (edited) You will probably need to become very familiar with the ie.au3 UDF (comes with AutoIt) then, since what you are really automating is an IE window.Il try that Edit: Well this didn't work$WinHandle = WinGetHandle("[CLASS:#32770]", "") $oIE = _IEAttach($WinHandle) Edited January 9, 2016 by Progh0st
Progh0st Posted January 9, 2016 Author Posted January 9, 2016 Lol found the issue, used WinList and found out i had 7 windows that matched my installer...
Moderators JLogan3o13 Posted March 12, 2019 Moderators Posted March 12, 2019 @Hevener Did you notice that A: the poster states in the last post what the resolution was, and B: this thread is over 3 years old? AutoIt has changed a lot since then; what worked in 2016 may not work the same now. If you have a question, you are better suited creating a new thread and explaining your problem. See the link in my signature for what information we need from you in order to answer your question. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now