x-Shadow-x Posted July 30, 2008 Share Posted July 30, 2008 Well im making an autoit for daemon tools, well here it is.Run("DAEMONTools.exe")WinWait("DAEMON Tools Pro Advanced Edition 4.10.0218","Welcome to the DAEMON")Send("{ENTER}")WinWait("DAEMON Tools Pro Advanced Edition 4.10.0218","Please review the license")Send("{ENTER}")WinWait("DAEMON Tools Pro Advanced Edition 4.10.0218","Choose which feature")Send("{TAB}{DOWN}{DOWN}{SPACE}{DOWN}{DOWN}{SPACE}{ENTER}")WinWait("DAEMON Tools Pro Advanced Edition 4.10.0218","Choose Install Locat")Send("{ENTER}")WinWait("DAEMON Tools Pro Advanced Edition 4.10.0218","In order to install")Send("{ENTER}")WinWait("Select personal key file to use")Send("c:\dtemp\key.4100218{ENTER}")WinWait("DAEMON Tools Pro Advanced Edition 4.10.0218","Completing the DAEMON")Send("{space}{ENTER}")exitI want to make it a silent install but when I put the ,"",@SW_HIDE behind "DAEMONTools.exe", It just hangs. ANy suggestions? Link to comment Share on other sites More sharing options...
blinkdt Posted August 13, 2008 Share Posted August 13, 2008 Yes, don't hide it. The Windows must be visible, that's the nature of AutoIt. You will never get a "silent" install, but you will find your unattended issues just vanished. Link to comment Share on other sites More sharing options...
MHz Posted August 14, 2008 Share Posted August 14, 2008 Please look at these topics:How do i hide the install window in autoitCan i use autoit ...In the initial code above, Send() requires an active and visible window to send to so I would at least expect WinWaitActive() to be used. WinWait() only waits for the window to appear. Look at WinWait(), WinActivate() and WinWaitActive() when using Send() or Mouse*() functions.You can hide an automated installation with AutoIt depending on various conditions that the certain installer allows. You may need to look at using WinWait() with the Control*() functions to achieve this. WinMove() and WinSetTrans() may be worth a look at using. Just about anything is possible with using AutoIt as you just need to understand how to do it. Link to comment Share on other sites More sharing options...
blinkdt Posted August 14, 2008 Share Posted August 14, 2008 Thanks for that, MHz, I certainly stand corrected (never say never ). In hindsight I do recall folks using the WinMove() function--but forgot about it--but never noticed WinSetTrans() in the help file's function reference. Very nice, I'm going to have to start playing with that! Link to comment Share on other sites More sharing options...
x-Shadow-x Posted August 19, 2008 Author Share Posted August 19, 2008 Ah thanks MHz, I will try in a bit. Link to comment Share on other sites More sharing options...
atolica Posted December 19, 2008 Share Posted December 19, 2008 (edited) Hi allAfter reading autoit documentation I thought of creating my own Daemon Tools Pro Advanced Edition autoit script, starting from x-shadow's script. This is for the latest Daemon Tools Pro 4.30.0303. I thought of running DT Pro Agent at last. By the way I bought the app.Here it is:Run("DTPro4300303.exe")WinWait("DAEMON Tools Pro 4.30.0303","Please select a language.")Send("{ENTER}")WinWait("DAEMON Tools Pro 4.30.0303","Welcome to the DAEMON Tools Pro 4.30.0303 Setup Wizard")Send("{ENTER}")WinWait("DAEMON Tools Pro 4.30.0303","Please review the license")Send("{ENTER}")WinWait("DAEMON Tools Pro 4.30.0303","Choose Components")Send("{TAB}{DOWN}{SPACE}{DOWN}{SPACE}{DOWN}{SPACE}{TAB}{TAB}{ENTER}")WinWait("DAEMON Tools Pro 4.30.0303","Choose Install Location")Send("{ENTER}")WinWait("DAEMON Tools Pro activation")Send("{ENTER}")WinWait("Select key-file")Send("dtproAdv.key{ENTER}{TAB}{TAB}name@somemail.com{TAB}{TAB}{SPACE}")WinWait("DAEMON Tools Pro 4.30.0303","Completing the DAEMON")Send("{SPACE}{ENTER}")Run("C:\Program Files\DAEMON Tools Pro\DTProAgent.exe")exitThis just installs DT Pro without anything else. Just the first option/component is checked. If you want extra options modify this line starting from Send:WinWait("DAEMON Tools Pro 4.30.0303","Choose Components")Send("{TAB}{DOWN}{SPACE}{DOWN}{SPACE}{DOWN}{SPACE}{TAB}{TAB}{ENTER}")Replace dtproAdv.key with your own key name and name@somemail.com with your registered email address.Greets,Atolica Edited December 19, 2008 by atolica Link to comment Share on other sites More sharing options...
atolica Posted December 19, 2008 Share Posted December 19, 2008 Here is for DT-Lite 4.30.2Run("daemon4302-lite.exe")WinWait("DAEMON Tools Lite 4.30.2","Please select a language.")Send("{ENTER}")WinWait("DAEMON Tools Lite 4.30.2","Welcome to the DAEMON Tools Lite 4.30.2 Setup Wizard")Send("{ENTER}")WinWait("DAEMON Tools Lite 4.30.2","Please review the license")Send("{ENTER}")WinWait("DAEMON Tools Lite 4.30.2","Choose Components")Send("{TAB}{TAB}{TAB}{DOWN}{SPACE}{DOWN}{SPACE}{DOWN}{SPACE}{DOWN}{SPACE}{DOWN}{SPACE}{ENTER}")WinWait("DAEMON Tools Lite 4.30.2", "Support the DAEMON Tools Team")Send("{SPACE}{ENTER}")WinWait("DAEMON Tools Lite 4.30.2","Choose Install Location")Send("{ENTER}")WinWait("DAEMON Tools Lite 4.30.2","Completing the DAEMON")Send("{SPACE}{ENTER}")sleep(2000); Close browsers processes$PID = ProcessExists("firefox.exe")If $PID ThenProcessClose($PID)EndIf$PID = ProcessExists("IEXPLORE.EXE")If $PID ThenProcessClose($PID)EndIf$PID = ProcessExists("opera.exe")If $PID ThenProcessClose($PID)EndIfRun("C:\Program Files\DAEMON Tools Lite\daemon.exe")exit 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