Help - Search - Members - Calendar
Full Version: Daemon Tools Lite 4.35.5
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   


Google Internet Forums Unattended CD/DVD Guide
Acheron
Here is an working version of the AutoIt scripts I use to install Daemon Tools Lite silently. Unfortunately it's not possible to avoid installation of the Daemon Tools Toolbar and Search plugins so I remove them afterwards.

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
CODE
rundll32.exe advpack.dll,LaunchINFSection .\Install\Daemon Tools\install.inf,,1


install.inf
CODE
[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%,00,00

[Strings]
LANG_ID="09,04"

[Strings.0413]
LANG_ID="13,04"


install_dtools.au3
CODE
#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)
Mann
link to download is not working for awxdTools1060.exe
Acheron
Fixed link to ArniWorx installer, also updated scripts for Daemon Tools Lite 4.30.0. Finally Daemon Tools decided to remove the adware from it.
Mann
thanks for the fix
Acheron
Updated script for Daemon Tools 4.30.1 rolleyes.gif
digitalfrost
Thanks alot for this. The script is really elegant, installing DAEMON Tools was never that easy smile.gif.
cool400
Thanks a lot - this is really smooth thumbup.gif

I would like to include this in my WPI-DVD, but how could I manage this?
Is it possible to make an SFX like this:



EDIT: hmmm...doesn't seem to work unsure.gif Maybe something's wrong with the path ".\install.inf" at the "rundll32.exe"-command?

Best regards

cool400 ph34r.gif
radix
QUOTE (cool400 @ Sep 16 2008, 12:06 AM) *
EDIT: hmmm...doesn't seem to work unsure.gif Maybe something's wrong with the path ".\install.inf" at the "rundll32.exe"-command?

This one works:
CODE
rundll32.exe advpack.dll,LaunchINFSection Install.inf
neuropass
hi thanks, for this script... but sorry i'm a newbie in these things... how do i use it..? blushing.gif i mean once i open "compile script to .exe" what do i have to do to select all these 3 scripts? thanks, a lot, any answer will be really appreciate..... i'm a vista user.
ZileXa
I dont really understand why to use all these scripts and Arniworx. Why not just install daemon tools silently (daemontools.exe /S) , install daemon script + a script silently and add the Mount/unMount option to your right click menu via regtweak?
cool400
Could you please post an example of what you did exactly?
ZileXa
Well, I thought this topic was created because there was a need for a new solution, because of some major update of d-tools.
I just install using /S switch. Then I use a simple autoit script to install Daemonscript because I couldn't find a working silent switch.

And finally I run this script (just a text file): DaemonDriveInstall.DaemonScript
Version|1.6.0|2|
DeviceCount|1|

Done!
Just need the regtweaks to add Mount and unMount to your rightclick menu for ISO and other image files and you're done. Don't have them available now. But there should be a topic here wich explains everything in details.


EDIT: Nevermind, just tested with the latest D-tools, installer needs restart so the solution from Acheron is needed.
ZileXa
Question for Acheron:

I tried to modify my method to get it working with the latest D-tools. I came closer and closer to your solution (because DaemonScript doesn't work anymore and after SPTD is installed you need a reboot to install dtools).

Now I don't really understand the complexity, why all those actions in the inf & au3 scripts?
Why not simply install SPTDinst-x86.exe and awxDTools1060.exe @T13 (using cmdlines or RunOnceEx)... then install DaemonTools.exe and the regtweaks (including the registration of the awxDTools dll) at first GUI boot?

This way you only need an AutoIt script for the Daemontools installer and you can do all other things by simply using your normal methods of installing applications (whatever that may be, cmdlines, batchfile, runonceex, wpi).


And is it really necessary to register the awxDtools dll at first guiboot? can't it be done right after the awxdtools installer is finished?
Acheron
QUOTE (ZileXa @ Nov 27 2008, 08:24 PM) *
Question for Acheron:

I tried to modify my method to get it working with the latest D-tools. I came closer and closer to your solution (because DaemonScript doesn't work anymore and after SPTD is installed you need a reboot to install dtools).

Now I don't really understand the complexity, why all those actions in the inf & au3 scripts?
Why not simply install SPTDinst-x86.exe and awxDTools1060.exe @T13 (using cmdlines or RunOnceEx)... then install DaemonTools.exe and the regtweaks (including the registration of the awxDTools dll) at first GUI boot?

This way you only need an AutoIt script for the Daemontools installer and you can do all other things by simply using your normal methods of installing applications (whatever that may be, cmdlines, batchfile, runonceex, wpi).


And is it really necessary to register the awxDtools dll at first guiboot? can't it be done right after the awxdtools installer is finished?


awxDtools cannot be registered unless Daemon Tools is running, so I have added a logon script for it. The script is a bit complicated, but now Daemon Tools can be configured for multiple users, and the installer runs from the Hard Drive. You can now safely remove the CD from the drive when Windows tells you setup is completed.
Anyway I have updated the script, since the Daemon Tools Toolbar process name has been changed.
ZileXa
ok thanks...

I was a bit disappointed by all the hassle.. then I found a tool wich might be a good alternative and is much easier to install (just a silent switch).
It's called imdisk virtual disk driver and its discussed here.

After installation, you can right click image files to mount them to a (till then non-existing) virtual CD/DVD drive. But it also has the option to mount as virtual harddrive and even use the RAM memory for the virtual drive instead of harddisk space. Wich means very high reading/transfer speed.
I haven't tested the silent installation yet, but it might be a nice alternative.There is no need for it to run in the background if you don't mount anything and I like that.
Acheron
Updated script for Daemon Tools 4.30.3. Note some settings are specified twice, to allow settings to be applied for all users.
Acheron
I have finally sorted out the problems with ArniWorx Shell Extension. I have rewritten the ArniWorx installer to be able to register image files properly by configuring the SystemFileAssociations registry section. However this only works on Windows XP and newer versions. When using Windows 2000 you should manually register AwxDTools.dll after Daemon Tools is installed.
sugarlee
Hi Acheron, thnx for the great work on this project.

Still have a question though, is it possible to import this in any way into my wpi installer?
Acheron
I have updated the ArniWorx Shell Extension installer as file associations didn't work properly on a clean setup. Guaranteed to work on Windows XP.

Some bad news,

Daemon Tools 4.30.4 no longer support the ArniWorx shell extension and the developers have not yet created a similar tool. It is possible though to continue using Daemon Tools 4.30.3 with newer SPTD versions.

If you can live without the Arniworx shell extension here's the updated AutoIt script for Daemon Tools 4.30.4:

CODE
#RequireAdmin
#NoTrayIcon

$DTTITLE = "Daemon Tools Lite"
$DTVERSION = "4.30.3"
$INSTALLDIR = @ProgramFilesDir & "\Daemon Tools Lite"
$EXENAME = "daemon4303-lite.exe"

;Save Internet Explorer settings
$HomePage = RegRead("HKCU\Software\Microsoft\Internet Explorer\Main", "Start Page")

;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

;Clear default internet browser temporary (to prevent Internet Explorer launch)
$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
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)

;Clean obsolete registry keys
RegDelete("HKCR\CLSID\{32099AAC-C132-4136-9E9A-4E364A424E17}")
RegDelete("HKCR\DTToolbar.ToolBandObj")
RegDelete("HKCR\DTToolbar.ToolBandObj.1")
RegDelete("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mds")
RegDelete("HKLM\SOFTWARE\Classes\Interface\{DB885111-F39F-4D88-9EE5-C88460B6DF7B}")
RegDelete("HKLM\SOFTWARE\Classes\TypeLib\{3E288F79-03E4-4983-A48E-0D879B51FF19}")
RegDelete("HKLM\SOFTWARE\DT Soft\DAEMON Tools Lite\Data", "TB")

;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
EndIf

;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", "Start Page", "REG_SZ", $HomePage)

; Restore the default search engine of IE7 or IE8
If $IEVersion >= 7 Then
    RegDelete("HKCU\Software\Microsoft\Internet Explorer\SearchScopes\{AD22EBAF-0D18-4fc7-90CC-5EA0ABBE9EB9}")
    RegWrite("HKCU\Software\Microsoft\Internet Explorer\SearchScopes", "DefaultScope", "REG_SZ", $IEDefaultSearchEngine)
EndIf

;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", "DisplayVersion", "REG_SZ", $DTVERSION)
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", "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)
applejack
QUOTE (Acheron @ Apr 24 2009, 05:11 PM) *
Some bad news,

Daemon Tools 4.30.4 no longer support the ArniWorx shell extension and the developers have not yet created a similar tool. It is possible though to continue using Daemon Tools 4.30.3 with newer SPTD versions.


I have created a reg file to add/remove shell extensions for mounting all supported images, using DT command line.
tested on vista + DT 4.30.4. check out readme.txt for further instructions.

any feedback would be appreciated.

download here:
http://www.sendspace.com/file/iwkds7
radix
QUOTE (applejack @ Apr 28 2009, 10:32 PM) *
I have created a reg file to add/remove shell extensions for mounting all supported images, using DT command line.
tested on vista + DT 4.30.4. check out readme.txt for further instructions.

file is attached. any feedback would be appreciated.
also, I forgot to mention that images will mount to device "0". you can edit the reg file though.

Welcome to the forum.
Tested with iso images and it's working.
Probably it should be better to use inf scripting because it can replace C:\Program Files with %16422%.
And what about add another reg entries for unmounting images (if possible).
Thanks.
applejack
thanks!

I do not know "inf scripting" and I'm only experimenting with registry files. smile.gif
if I use %programfiles% in the reg file, I think that would translate to "c:\program files" while it supposed to be "c:\\program files"
in any way, the user might have installed DT to somewhere outside program files...

about unmounting... there is a command line for that, as seen here:
http://www.daemon-help.com/windows_integra...tches_lite.html

but unmounting is per device, thus linking it to file extensions would be pointless.
I can link it to desktop right click menu and such, but I don't see the effectiveness as you can always unmount via left click on DT tray icon.
also you do not need to free the device (unmount) in order to mount another image.
Antey
applejack, great work! Can you add also an option "Unmount" directly from the image file? (Not "Eject" from "My Computer")). welcome.gif
applejack
by "directly from the image file" you mean right clicking on image file and select unmount ?
because, as I said before, unmounting is per device, not per image. it does not care for specific files.
I do not understand the logic in adding unmount to only image file extensions, so you'll have to search for image files on your hard drive just
for unmount option to be available? the image file itself is irrelevant to the unmounting operation.

also, whats the point in unmounting anyway ?


edit: I have now checked DT preferences and was surprised to see file associations under integration menu.
so my registry file is not needed at all I assume. DT lite can do it all by itself (well, except .bin files)
also you can bind hotkey for unmountng... guess I wasted my time, but what the hell, at least I've learned something on the way.
darks0ul
Uhm Daemon installed a firefox search plugin... Any idea on how to get rid of this?
Acheron
I already had taken care of the search plugin by updating the script. I just had not posted it here. See first post for complete script.

CODE
;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
EndIf
darks0ul
I had figured out a similar method. Thanks Acheron!
Acheron
Updated script for Daemon Tools Lite 4.35.5.




Google Internet Forums Unattended CD/DVD Guide

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.