PDA

View Full Version : daemon tools lite silent and...



narillo
13.11.2008, 03:11
hi guys... i've a problem... please don't ban me for this...:rolleyes:

Iwant to install daemon tools lite in a silent way and without the toolbar and the search option... how should i do that..?
thanks for your time... any help will be so much appreciated(i'm going crazy to do that).

Blazkowicz
13.11.2008, 21:01
There aren't command line switches for these options.

narillo
13.11.2008, 21:03
yep that's why i'm asking here... this is too bad... there always has to be options in cool software like daemon...


I heard that with autoit you'll be able to do that... is that right?
thanks...

Blazkowicz
13.11.2008, 21:06
I heard that with autoit you'll be able to do that... is that right?
thanks...

Not that i'm aware of.

narillo
13.11.2008, 21:45
well this is the script that i found out..



#RequireAdmin
#NoTrayIcon

$DTTITLE = "Daemon Tools Lite 4.30.1"
$INSTALLDIR = @ProgramFilesDir & "\Daemon Tools Lite"
$EXENAME = "daemon4301-lite.exe"

;Save Internet Explorer homepage (prevent Internet Explorer to launch)
$HomePage = RegRead("HKCU\Software\Microsoft\Internet Explorer\Main", "Start Page")

;Clear default internet browser temporary
$DefBrowser = RegRead("HKCR\HTTP\shell\open\command\", "")
RegDelete("HKCR\HTTP\shell\open\command\", "")

;Save mds fileassociation
$mds_assoc = RegRead("HKCR\.mds", "")

;Launch Daemon Tools setup
$Pid = Run(@ScriptDir & "\" & $EXENAME & " /S")

;Kill Daemon Tools toolbar installation process
If ProcessWait("Daemon Tools Toolbar.exe", 300) Then
ProcessClose("Daemon Tools Toolbar.exe")
ProcessWaitClose("Daemon Tools Toolbar.exe")
FileDelete($INSTALLDIR & "\DAEMON Tools Toolbar.exe")
EndIf

ProcessWaitClose($Pid)

;Restore the default internet browser
RegWrite("HKCR\HTTP\shell\open\command\", "", "REG_SZ", $DefBrowser)

;Restore the home page of Internet Explorer
RegWrite("HKCU\SOFTWARE\Microsoft\Internet Explorer\Main", "", "REG_SZ", $HomePage)

;Don't associate with any files
RegDelete("HKLM\SOFTWARE\DT Soft\DAEMON Tools Lite\FileTypesSave")

;Restore mds association
RegWrite("HKCR\.mds", "", "REG_SZ", $mds_assoc)
RegDelete("HKCR\.mds", "fastmountoldfile")

;Cleanup shortcuts
DirRemove(@ProgramsCommonDir & "\DAEMON Tools Lite", 1)
FileDelete(@DesktopCommonDir & "\DAEMON Tools Lite.lnk")

FileCreateShortcut ($INSTALLDIR & "\daemon.exe", @ProgramsCommonDir & "\Daemon Tools Lite.lnk")

;Write uninstall information to registry
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uni nstall\DAEMON Tools Lite", "DisplayName", "REG_SZ", $DTTITLE)
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uni nstall\DAEMON Tools Lite", "DisplayIcon", "REG_SZ",$INSTALLDIR & "\daemon.exe")
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uni nstall\DAEMON Tools Lite", "InstallLocation", "REG_SZ", $INSTALLDIR)
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uni nstall\DAEMON Tools Lite", "UninstallString", "REG_SZ", $INSTALLDIR & "\uninst.exe")
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uni nstall\DAEMON Tools Lite", "NoModify", "REG_DWORD", 1)

;Register ArniWorX shell extension after logon
RegWrite("HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run Once", "Configure Daemon Tools", "REG_SZ", "autoit3.exe """ & @AppDataCommonDir & "\DAEMON Tools\user_dtools.au3""")

;Remove Daemon Tools autorun
RegDelete("HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run","DAEMON Tools Lite")

Blazkowicz
13.11.2008, 21:51
It is not a proper way - it kills toolbar setup. It even writes itself into uninstall, so you can uninstall it the normal way.
There are copy protections out which blacklists that entry.
Also it is using ArniWorX which is oudated.

narillo
13.11.2008, 21:57
ok i see... thanks man for your help... it's nice when people answer the question... even if they are simple... thanks again...

kukubau
27.12.2008, 23:35
$DTTITLE = "DAEMON Tools Lite 4.30.2"
$INSTALLDIR = @ProgramFilesDir & "\DAEMON Tools Lite"
$EXENAME = "daemon4302-lite.exe"

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}{SP ACE}{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")

;Write uninstall information to registry
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uni nstall\DAEMON Tools Lite", "DisplayName", "REG_SZ", $DTTITLE)
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uni nstall\DAEMON Tools Lite", "DisplayIcon", "REG_SZ",$INSTALLDIR & "\daemon.exe")
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uni nstall\DAEMON Tools Lite", "InstallLocation", "REG_SZ", $INSTALLDIR)
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uni nstall\DAEMON Tools Lite", "UninstallString", "REG_SZ", $INSTALLDIR & "\uninst.exe")
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uni nstall\DAEMON Tools Lite", "NoModify", "REG_DWORD", 1)
exit