Supergudrun Posted June 26, 2007 Share Posted June 26, 2007 Hello Autoit-Specialists! I'm trying to make an Autoit-Script to (unattended) install the new Trillian-version 3.1.6.0. This is my current au3-script: BlockInput(1) RUN (EnvGet("systemdrive") & "\install\applications\trillian\trillian-v3.1.6.0.exe") winwait("Trillian Installer") sleep (100) controlclick("Trillian Installer", "Agree", "Button1") winwait("Trillian Installer") sleep (100) controlclick("Trillian Installer", "&Next >", "Button1") winwait("Directory doesn't exist") sleep (100) controlclick("Directory doesn't exist", "&Ja", "Button1") winwait("Trillian Installer", "Press launch to continue") Sleep(500) controlclick("Trillian Installer", "&Launch", "Button1") BlockInput(0) exit After the installation Trillian shoult not be launched and the install-window should be closed. Unfortunately I'm not able to identify the window correctly in order to close it. Is there anyone to help me? Please excuse my bat very bad English ... -------------------- Grz Supergudrun Link to comment Share on other sites More sharing options...
ksmith247 Posted June 26, 2007 Share Posted June 26, 2007 After the installation Trillian shoult not be launched and the install-window should be closed. Unfortunately I'm not able to identify the window correctly in order to close it. Is there anyone to help me?Have you used the AutoIt Window Info tool to identify the troublesome window? It's always been reliable for me. Support bacteria; it's the only culture most people have.LxP's Learning to Script with AutoIt 3 - Excellent starting placeVolly's Links Page - Links to cool and useful scriptsAutoIt Wrappers - Valuater's AutoIt Wrappers post. Lots of good stuff.Support AutoIt - Make a donation here; I did.[size="2"]#include <Guinness.pint>[/size] Link to comment Share on other sites More sharing options...
Supergudrun Posted June 27, 2007 Author Share Posted June 27, 2007 yes, I did. The problem is solved now - I made a simple mistake: during my testing I did'n delete the install-folder, so that the questin whether I want to create the Trillian-folder or not was not asked, so that the script stopped there. Here is the working au3-file to install Trillian 3.1.6.0 unattended: BlockInput(1) RUN (EnvGet("systemdrive") & "\install\applications\trillian\trillian-v3.1.6.0.exe") winwait("Trillian Installer") sleep (1000) controlclick("Trillian Installer", "Agree", "Button1") winwait("Trillian Installer") sleep (1000) controlclick("Trillian Installer", "&Next >", "Button1") winwait("Directory doesn't exist") sleep (1000) controlclick("Directory doesn't exist", "&Ja", "Button1") winwait("Trillian Installer", "&Launch") Sleep(500) WinClose("Trillian Installer", "&Launch") BlockInput(0) exit Link to comment Share on other sites More sharing options...
star2 Posted June 27, 2007 Share Posted June 27, 2007 I would advice u to see this examplehttp://www.autoitscript.com/forum/index.php?showtopic=46224 [quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u] Link to comment Share on other sites More sharing options...
Supergudrun Posted August 31, 2009 Author Share Posted August 31, 2009 (edited) yes, I did. The problem is solved now - I made a simple mistake: during my testing I did'n delete the install-folder, so that the questin whether I want to create the Trillian-folder or not was not asked, so that the script stopped there. Here is the working au3-file to install Trillian 3.1.6.0 unattended: BlockInput(1) RUN (EnvGet("systemdrive") & "\install\applications\trillian\trillian-v3.1.6.0.exe") winwait("Trillian Installer") sleep (1000) controlclick("Trillian Installer", "Agree", "Button1") winwait("Trillian Installer") sleep (1000) controlclick("Trillian Installer", "&Next >", "Button1") winwait("Directory doesn't exist") sleep (1000) controlclick("Directory doesn't exist", "&Ja", "Button1") winwait("Trillian Installer", "&Launch") Sleep(500) WinClose("Trillian Installer", "&Launch") BlockInput(0) exit I tried this Sript for the newest version of trillian v3.1.13. Unfortunately the "WinClose"-command didn't work. Can anybody help with this problem? Here is my script: BlockInput(1) RUN (EnvGet("systemdrive") & "\install\applications\trillian\Trillian31130.exe") winwait("Trillian Installer", "THIS IS A LEGAL AGREEMENT") sleep (100) controlclick("Trillian Installer", "Agree", "Button1") winwait("Trillian Installer", "Cancel") sleep (100) controlclick("Trillian Installer", "&Next >", "Button1") winwait("Trillian Installer", "I accept") sleep (200) controlclick("Trillian Installer", "I accept the license agreement and want to install the free Ask Toolbar", "Button4") controlclick("Trillian Installer", "&Next >", "Button2") winwait("Trillian Installer", "&Launch") Sleep(100) WinClose("Trillian Installer", "&Launch") BlockInput(0) exit Grz Supergudrun Edited August 31, 2009 by Supergudrun Link to comment Share on other sites More sharing options...
Bert Posted August 31, 2009 Share Posted August 31, 2009 Have you checked to see if the install uses command line switches? You could see if it supports the silent switch. Makes things MUCH simpler. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
llewxam Posted August 31, 2009 Share Posted August 31, 2009 WinClose("Trillian Installer", "&Launch") Are you sure the "&" is supposed to be there before Launch? I know & sets an accelerator (underlines the letter) but I never include that and have automated probably 30 apps. I agree with Volly, but to do automated installs a more bulletproof way is like this: (my Double Driver installer) expandcollapse popup$timedelay=250 Run("dd210.exe") Do sleep($timedelay) if WinExists("Double Driver Setup","Welcome to the Double Driver Setup Wizard") then WinActivate("Double Driver Setup","Welcome to the Double Driver Setup Wizard") sleep($timedelay) send("{ENTER}") EndIf if WinExists("Double Driver Setup","Please read the following important information before continuing.") then WinActivate("Double Driver Setup","Please read the following important information before continuing.") sleep($timedelay) send("!a") ;ALT-a sleep($timedelay) send("{ENTER}") EndIf if WinExists("Double Driver Setup","Where should Double Driver be installed?") then WinActivate("Double Driver Setup","Where should Double Driver be installed?") sleep($timedelay) send("!n") EndIf if WinExists("Double Driver Setup","Where should Setup place the program's shortcuts?") then WinActivate("Double Driver Setup","Where should Setup place the program's shortcuts?") sleep($timedelay) send("!n") EndIf if WinExists("Double Driver Setup","Which additional tasks should be performed?") then WinActivate("Double Driver Setup","Which additional tasks should be performed?") sleep($timedelay) send("!n") endif if WinExists("Double Driver Setup","Setup is now ready to begin installing Double Driver on your computer.") then WinActivate("Double Driver Setup","Setup is now ready to begin installing Double Driver on your computer.") sleep($timedelay) send("!i") EndIf if WinExists("Double Driver Setup","Completing the Double Driver Setup Wizard") then WinActivate("Double Driver Setup","Completing the Double Driver Setup Wizard") sleep($timedelay) send("{SPACE}") sleep($timedelay) send("!f") ExitLoop EndIf until 1=2 Very similar to the link star2 referenced. I like throwing a WinActivate in there incase the installation window looses focus for whatever reason. Ian My projects: IP Scanner - Multi-threaded ping tool to scan your available networks for used and available IP addresses, shows ping times, resolves IPs in to host names, and allows individual IPs to be pinged. INFSniff - Great technicians tool - a tool which scans DriverPacks archives for INF files and parses out the HWIDs to a database file, and rapidly scans the local machine's HWIDs, searches the database for matches, and installs them. PPK3 (Persistent Process Killer V3) - Another for the techs - suppress running processes that you need to keep away, helpful when fighting spyware/viruses. Sync Tool - Folder sync tool with lots of real time information and several checking methods. USMT Front End - Front End for Microsoft's User State Migration Tool, including all files needed for USMT 3.01 and 4.01, 32 bit and 64 bit versions. Audit Tool - Computer audit tool to gather vital hardware, Windows, and Office information for IT managers and field techs. Capabilities include creating a customized site agent. CSV Viewer - Displays CSV files with automatic column sizing and font selection. Lines can also be copied to the clipboard for data extraction. MyDirStat - Lists number and size of files on a drive or specified path, allows for deletion within the app. 2048 Game - My version of 2048, fun tile game. Juice Lab - Ecigarette liquid making calculator. Data Protector - Secure notes to save sensitive information. VHD Footer - Add a footer to a forensic hard drive image to allow it to be mounted or used as a virtual machine hard drive. Find in File - Searches files containing a specified phrase. Link to comment Share on other sites More sharing options...
Supergudrun Posted September 1, 2009 Author Share Posted September 1, 2009 Thanks for response so far. I watched the unattended installation, with the result, that the focus stays on the trillian installer. Unfortunately I found no silent switch for that installer. My tries with "Launch" instead of "&Launch" reached the same result Any other ideas to close the windows in due time? Grz Supergudrun Link to comment Share on other sites More sharing options...
llewxam Posted September 1, 2009 Share Posted September 1, 2009 (edited) $timedelay=250 run("trillian-v3.1.13.0.exe") Do sleep($timedelay) if WinExists("Trillian Installer","Trillian(TM) End User License Agreement") Then WinActivate("Trillian Installer","Trillian(TM) End User License Agreement") send("{ENTER}") EndIf if WinExists("Trillian Installer","C:\Program Files\Trillian") Then WinActivate("Trillian Installer","C:\Program Files\Trillian") send("{ENTER}") EndIf if WinExists("Trillian Installer","I accept the license agreement and want to install the free Ask Toolbar") Then WinActivate("Trillian Installer","I accept the license agreement and want to install the free Ask Toolbar") send("{TAB 2}") ;select the Ask Toolbar option send("{SPACE}") ;no thanks! :) send("{ENTER}") EndIf if WinExists("Trillian Installer","Launch") Then WinActivate("Trillian Installer","Launch") ;CHOOSE ONE OF THE FOLLOWING send("{ENTER}") ;allows Trillian to launch ;~ ProcessClose("trillian-v3.1.13.0.exe") ;prevents Trillian from launching ExitLoop ;quits the automation once the installer is completed EndIf until 1=2 That did the trick for me Ian Edited September 1, 2009 by llewxam My projects: IP Scanner - Multi-threaded ping tool to scan your available networks for used and available IP addresses, shows ping times, resolves IPs in to host names, and allows individual IPs to be pinged. INFSniff - Great technicians tool - a tool which scans DriverPacks archives for INF files and parses out the HWIDs to a database file, and rapidly scans the local machine's HWIDs, searches the database for matches, and installs them. PPK3 (Persistent Process Killer V3) - Another for the techs - suppress running processes that you need to keep away, helpful when fighting spyware/viruses. Sync Tool - Folder sync tool with lots of real time information and several checking methods. USMT Front End - Front End for Microsoft's User State Migration Tool, including all files needed for USMT 3.01 and 4.01, 32 bit and 64 bit versions. Audit Tool - Computer audit tool to gather vital hardware, Windows, and Office information for IT managers and field techs. Capabilities include creating a customized site agent. CSV Viewer - Displays CSV files with automatic column sizing and font selection. Lines can also be copied to the clipboard for data extraction. MyDirStat - Lists number and size of files on a drive or specified path, allows for deletion within the app. 2048 Game - My version of 2048, fun tile game. Juice Lab - Ecigarette liquid making calculator. Data Protector - Secure notes to save sensitive information. VHD Footer - Add a footer to a forensic hard drive image to allow it to be mounted or used as a virtual machine hard drive. Find in File - Searches files containing a specified phrase. Link to comment Share on other sites More sharing options...
Supergudrun Posted September 1, 2009 Author Share Posted September 1, 2009 Thanks for that, it works for me now! Grz Supergudrun Link to comment Share on other sites More sharing options...
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