well this is the script that i found out..
Code:
#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\Uninstall\DAEMON Tools Lite", "DisplayName", "REG_SZ", $DTTITLE)
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Lite", "DisplayIcon", "REG_SZ",$INSTALLDIR & "\daemon.exe")
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Lite", "InstallLocation", "REG_SZ", $INSTALLDIR)
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Lite", "UninstallString", "REG_SZ", $INSTALLDIR & "\uninst.exe")
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Lite", "NoModify", "REG_DWORD", 1)
;Register ArniWorX shell extension after logon
RegWrite("HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce", "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")
Bookmarks