Jump to content

Autoit Help (daemon tools)


Recommended Posts

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

I 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

  • 2 weeks later...

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.

:)

Link to comment
Share on other sites

Thanks for that, MHz, I certainly stand corrected (never say never :rolleyes: ). 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

  • 4 months later...

Hi all

After 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")

exit

This 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 by atolica
Link to comment
Share on other sites

Here is for DT-Lite 4.30.2

Run("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 Then
ProcessClose($PID)
EndIf
$PID = ProcessExists("IEXPLORE.EXE")
If $PID Then
ProcessClose($PID)
EndIf
$PID = ProcessExists("opera.exe")
If $PID Then
ProcessClose($PID)
EndIf
Run("C:\Program Files\DAEMON Tools Lite\daemon.exe")
exit

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...