Jump to content

tombojones

Member
  • Posts

    1
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Spain

About tombojones

tombojones's Achievements

0

Reputation

  1. Here's a good code for 4.30.1 Lite. I use this on my unattended xp but there are two prerequisites: 1. SPTD DRIVER MUST BE INSTALLED BEFORE (eg. I integrated it into my unattended XP setup: "SPTDinst-v156-x86.exe /q") 2. ONLY WORKS ON 32bit XP #NoTrayIcon BlockInput(1) $INSTALLLOCATION = @ProgramFilesDir & "\DAEMON Tools Lite" $Autostart = "0" ; Disable the default internet browser (to prevent daemon.exe to open it) $DefBrowser = RegRead("HKCR\HTTP\shell\open\command\", "") RegDelete("HKCR\HTTP\shell\open\command\", "") Run("daemon4301-lite.exe") AdlibEnable('_Adlib') ;This installs it without spyware and without shortcuts. WinWaitActive("DAEMON Tools Lite","install") Send("!n") WinWaitActive("DAEMON Tools Lite","license") Send("!a") WinWaitActive("DAEMON Tools Lite","features") Send("{DOWN}") Send("{SPACE}") Send("{DOWN}") Send("{SPACE}") Send("{DOWN}") Send("{SPACE}") Send("{DOWN}") Send("{SPACE}") Send("{DOWN}") Send("{SPACE}") Send("!n") WinWaitActive("DAEMON Tools Lite","search") Send("{SPACE}") Send("!n") WinWaitActive("DAEMON Tools Lite","folder") Send("!i") WinWait("DAEMON Tools Lite","installed") Send("!r") Send("!f") 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 ; Restore the default internet browser RegWrite("HKCR\HTTP\shell\open\command\", "", "REG_SZ", $DefBrowser) ; Add uninstall entries RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Lite", "DisplayName", "REG_SZ", "DAEMON Tools Lite") RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Lite", "UninstallString", "REG_SZ", $INSTALLLOCATION & "\uninst.exe") RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Lite", "InstallLocation", "REG_SZ", $INSTALLLOCATION) RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Lite", "DisplayIcon", "REG_SZ", $INSTALLLOCATION & "\daemon.exe") AdlibDisable() Func _Adlib() ; Please select a language. If WinExists("DAEMON Tools Lite", "Please select a language.") Then ControlClick("DAEMON Tools Lite", "Please select a language.", "Button1") EndIf EndFunc ; Block DAEMON Tools to run on Windows startup If $Autostart = 0 Then RegDelete("HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "DAEMON Tools Lite") EndIf IniWrite(@AppDataDir & "\DAEMON Tools\daemontools.ini", "Global", "Autostart", 0) Thanks to the guy above me, I used lots of their code.
×
×
  • Create New...