Acheron Posted February 8, 2009 Author Share Posted February 8, 2009 Updated script for Daemon Tools 4.30.3. Note some settings are specified twice, to allow settings to be applied for all users. Link to comment Share on other sites More sharing options...
Acheron Posted March 2, 2009 Author Share Posted March 2, 2009 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. Link to comment Share on other sites More sharing options...
sugarlee Posted March 6, 2009 Share Posted March 6, 2009 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? Link to comment Share on other sites More sharing options...
Acheron Posted April 24, 2009 Author Share Posted April 24, 2009 (edited) 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:#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}" EndIfEndIf;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 setupRunWait(@ScriptDir & "\" & $EXENAME & " /S");Uninstall DAEMON Tools ToolbarRunWait(@ProgramFilesDir & "\DAEMON Tools Toolbar\uninst.exe /S")FileDelete($INSTALLDIR & "\DAEMON Tools Toolbar.exe")DirRemove(@ProgramFilesDir & "\DAEMON Tools Toolbar", 1);Clean obsolete registry keysRegDelete("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 toolbarIf 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) EndIfEndIf;Restore the default internet browserRegWrite("HKCR\HTTP\shell\open\command\", "", "REG_SZ", $DefBrowser);Restore the home page of Internet ExplorerRegWrite("HKCU\SOFTWARE\Microsoft\Internet Explorer\Main", "Start Page", "REG_SZ", $HomePage); Restore the default search engine of IE7 or IE8If $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 filesRegDelete("HKLM\SOFTWARE\DT Soft\DAEMON Tools Lite\FileTypesSave");Restore mds associationRegWrite("HKCR\.mds", "", "REG_SZ", $mds_assoc)RegDelete("HKCR\.mds", "fastmountoldfile");Cleanup shortcutsDirRemove(@ProgramsCommonDir & "\DAEMON Tools Lite", 1)FileDelete(@DesktopCommonDir & "\DAEMON Tools Lite.lnk")FileCreateShortcut ($INSTALLDIR & "\daemon.exe", @ProgramsCommonDir & "\Daemon Tools Lite.lnk");Write uninstall information to registryRegWrite("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")WEndFileClose($search);Remove install filesDirRemove(@AppdataCommonDir & "\DAEMON Tools", 1) Edited June 27, 2009 by Acheron Link to comment Share on other sites More sharing options...
applejack Posted April 28, 2009 Share Posted April 28, 2009 (edited) 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 Edited April 29, 2009 by applejack Link to comment Share on other sites More sharing options...
radix Posted April 28, 2009 Share Posted April 28, 2009 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. Link to comment Share on other sites More sharing options...
applejack Posted April 29, 2009 Share Posted April 29, 2009 (edited) thanks!I do not know "inf scripting" and I'm only experimenting with registry files. 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.htmlbut 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. Edited April 29, 2009 by applejack Link to comment Share on other sites More sharing options...
Antey Posted April 29, 2009 Share Posted April 29, 2009 applejack, great work! Can you add also an option "Unmount" directly from the image file? (Not "Eject" from "My Computer")). Link to comment Share on other sites More sharing options...
applejack Posted April 29, 2009 Share Posted April 29, 2009 (edited) 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. Edited April 29, 2009 by applejack Link to comment Share on other sites More sharing options...
darks0ul Posted June 27, 2009 Share Posted June 27, 2009 Uhm Daemon installed a firefox search plugin... Any idea on how to get rid of this? Link to comment Share on other sites More sharing options...
Acheron Posted June 27, 2009 Author Share Posted June 27, 2009 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.;Delete Firefox toolbarIf 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) EndIfEndIf Link to comment Share on other sites More sharing options...
darks0ul Posted July 1, 2009 Share Posted July 1, 2009 I had figured out a similar method. Thanks Acheron! Link to comment Share on other sites More sharing options...
Acheron Posted November 1, 2009 Author Share Posted November 1, 2009 Updated script for Daemon Tools Lite 4.35.5. Link to comment Share on other sites More sharing options...
ckislam Posted December 24, 2009 Share Posted December 24, 2009 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.just a silent switch.. what is that switch for imdisk?thanks Link to comment Share on other sites More sharing options...
BubbleBobble Posted February 23, 2010 Share Posted February 23, 2010 (edited) Unfortunately it's not possible to avoid installation of the Daemon Tools Toolbar and Search plugins so I remove them afterwards.Hi!if it can be useful, this is an addon from an italian guy:[Release] DAEMON TOOLS LITE 4.30.4 V2/26.05.09it's for the italian version of DT, but it has no banners no ads at all.The guy was a genious, but doesn't post/update anymore...Hope it can help (maybe you can try to see how he did it) Edited February 23, 2010 by BubbleBobble Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now