ArniWorx is no longer supported.
All install files are copied to the hard disc during setup, as Daemon Tools is installed after logon. At this stage users might have removed the CD from the cd drive.
cmdlines.txt
rundll32.exe advpack.dll,LaunchINFSection .\Install\Daemon Tools\install.inf,,1
install.inf
[Version] Signature = "$Windows NT$" [DefaultInstall] RunPreSetupCommands = SPTD.Install:1 CopyFiles = DaemonTools.CopySetup AddReg = Register.AddReg [SPTD.Install] ;SPTD-driver 1.62 """%01%\SPTDinst-v162-x86.exe"" add /q" [DestinationDirs] ;All users application data directory DaemonTools.CopySetup = 16419,"DAEMON Tools" [DaemonTools.CopySetup] "daemon4355-lite.exe" "install_dtools.au3" [Register.AddReg] ;Install Daemon Tools after reboot HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\000","DAEMON Tools Lite",0,"autoit3.exe ""%16419%\DAEMON Tools\install_dtools.au3""" ;Start Daemon Tools for all users HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Run","DAEMON Tools Lite",0x0,"""%16422%\DAEMON Tools Lite\DTLite.exe"" -autorun" ;User settings HKCU,"SOFTWARE\DT Soft\DAEMON Tools Pro\Config","Automount",0x10001,01,00,00,00 HKCU,"SOFTWARE\DT Soft\DAEMON Tools Pro\Config","Autostart",0x10001,01,00,00,00 HKCU,"SOFTWARE\DT Soft\DAEMON Tools Pro\Config","CheckForUpdate",0x10001,00,00,00,00 HKCU,"SOFTWARE\DT Soft\DAEMON Tools Pro\View","Language",0x10001,"%LANG_ID%" [Strings] LANG_ID="1033" [Strings.0413] LANG_ID="1043"
install_dtools.au3
#RequireAdmin
#NoTrayIcon
$DTTITLE = "Daemon Tools Lite"
$DTVERSION = "4.35.5"
$INSTALLDIR = @ProgramFilesDir & "\DAEMON Tools Lite"
$EXENAME = "daemon4355-lite.exe"
;Read from registry the default search engine of IE7 or IE8 (to restore it after the installation of DAEMON Tools Lite)
$IEVersion = FileGetVersion(@ProgramFilesDir & "\Internet Explorer\iexplore.exe")
$IEVersion = StringLeft($IEVersion, 1)
If $IEVersion >= 7 Then
$IEDefaultSearchEngine = RegRead("HKCU\Software\Microsoft\Internet Explorer\SearchScopes", "DefaultScope")
If @Error Then
$IEDefaultSearchEngine = "{0633EE93-D776-472f-A0FF-E1416B8B2E3A}"
EndIf
EndIf
;Launch Daemon Tools setup
RunWait(@ScriptDir & "\" & $EXENAME & " /S")
;Uninstall DAEMON Tools Toolbar
RunWait(@ProgramFilesDir & "\DAEMON Tools Toolbar\uninst.exe /S")
FileDelete($INSTALLDIR & "\DAEMON Tools Toolbar.exe")
DirRemove(@ProgramFilesDir & "\DAEMON Tools Toolbar", 1)
;Delete Firefox toolbar
If FileExists(@AppDataDir & "\Mozilla\Firefox\profiles.ini") Then
$moz_profiledir = IniRead(@AppDataDir & "\Mozilla\Firefox\profiles.ini", "Profile0", "Path", "")
$moz_dttoolbarDir = @AppDataDir & "\Mozilla\Firefox\" & $moz_profiledir & "\extensions\DTToolbar@toolbarnet.com"
If FileExists($moz_dttoolbarDir) Then
FileDelete($moz_dttoolbarDir)
EndIf
;Remove Deamon Tools search plugin
FileDelete(@AppDataDir & "\Mozilla\Firefox\" & $moz_profiledir & "\searchplugins\daemon-search.xml")
EndIf
; Restore the default search engine of IE7 or IE8
If $IEVersion >= 7 Then
RegDelete("HKCU\Software\Microsoft\Internet Explorer\SearchScopes\{AD22EBAF-0D18-4fc7-90CC-5EA0ABBE9EB8}")
RegWrite("HKCU\Software\Microsoft\Internet Explorer\SearchScopes", "DefaultScope", "REG_SZ", $IEDefaultSearchEngine)
EndIf
;Cleanup shortcuts
DirRemove(@ProgramsCommonDir & "\DAEMON Tools Lite", 1)
FileDelete(@DesktopCommonDir & "\DAEMON Tools Lite.lnk")
FileCreateShortcut ($INSTALLDIR & "\DTLite.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", "DisplayVersion", "REG_SZ", $DTVERSION)
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Lite", "DisplayIcon", "REG_SZ",$INSTALLDIR & "\DTLite.exe")
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Lite", "Publisher", "REG_SZ", "DT Soft Ltd.")
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Lite", "InstallLocation", "REG_SZ", $INSTALLDIR)
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Lite", "URLInfoAbout", "REG_SZ", "http://www.daemon-tools.cc")
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)
;Cleanup temp files
$search = FileFindFirstFile(@TempDir & "\*.tmp")
While 1
$file = FileFindNextFile($search)
If @error then ExitLoop
DirRemove(@Tempdir & "\" & $file, 1)
RegDelete("HKLM\SYSTEM\CurrentControlSet\Control\Session Manager", "PendingFileRenameOperations")
WEnd
FileClose($search)
;Remove install files
DirRemove(@AppdataCommonDir & "\DAEMON Tools", 1)
DirRemove(@AppdataDir & "\DAEMON Tools Pro", 1)
DirRemove(@AppdataDir & "\DAEMON Tools", 1)
Attached File(s)
-
install.inf (1.18K)
Number of downloads: 44 -
install_dtools.au3 (3.52K)
Number of downloads: 51
This post has been edited by Acheron: 23 February 2010 - 07:25 AM



Help


Back to top










