Help - Search - Members - Calendar
Full Version: Autoit Help (daemon tools)
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   
Google Internet Forums Unattended CD/DVD Guide
x-Shadow-x
Well im making an autoit for daemon tools, well here it is.

CODE
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}")
exit


I want to make it a silent install but when I put the ,"",@SW_HIDE behind "DAEMONTools.exe", It just hangs. ANy suggestions?
blinkdt
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. rolleyes.gif
MHz
Please look at these topics:
How do i hide the install window in autoit
Can 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.

smile.gif
blinkdt
Thanks for that, MHz, I certainly stand corrected (never say never rolleyes.gif ). 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!
x-Shadow-x
Ah thanks MHz, I will try in a bit.
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.