InfiniTec - Henning Krauses Blog

Don't adjust your mind - it's reality that is malfunctioning

Mount a CD/DVD image via context menu in the Explorer using Daemon-Tools

More Information

The daemon tools are by default set up to start a small program that is accessed via the system tray, near the clock. With a right-click on the program icon, one can easily mount and unmount images, or change the number of virtual drives on the fly.

However, one often comes accross an image with an explorer window. To mount such an icon, the user must do the following:

  1. Right-click on the daemon-tools tray icon

  2. Navigate to the virtual drive, where the image should be mounted

  3. Choose Mount image.

  4. In the Open file dialog, navigate to the folder

  5. Click Ok.

Luckily, the daemon tools have a rich set of command line parameters, so most of the above steps can be eliminated.

     

Solution

To allow the mounting of images via the context menu, the image files must be associated with the daemon tools. To do this apply the following registry information to your computer:

    1 Windows Registry Editor Version 5.00

    2 [HKEY_CLASSES_ROOT\DaemonTools.File]

    3 @="CD/DVD Image"

    4 [HKEY_CLASSES_ROOT\DaemonTools.File\shell]

    5 @="open"

    6 [HKEY_CLASSES_ROOT\DaemonTools.File\shell\mount1]

    7 @="Mount Image on Second Virtual Drive"

    8 [HKEY_CLASSES_ROOT\DaemonTools.File\shell\mount1\command]

    9 @="\"C:\\Program Files\\D-Tools\\daemon.exe\" -mount 1,\"%l\""

   10 [HKEY_CLASSES_ROOT\DaemonTools.File\shell\open]

   11 @="Mount Image on First Virtual Drive"

   12 [HKEY_CLASSES_ROOT\DaemonTools.File\shell\open\command]

   13 @="\"C:\\Program Files\\D-Tools\\daemon.exe\" -mount 0,\"%l\""

   14 [HKEY_CLASSES_ROOT\.iso]

   15 @="DaemonTools.File"

   16 [HKEY_CLASSES_ROOT\.nrg]

   17 @="DaemonTools.File"

   18 [HKEY_CLASSES_ROOT\.bin]

   19 @="DaemonTools.File"

   20 [HKEY_CLASSES_ROOT\.cue]

   21 @="DaemonTools.File"

   22 [HKEY_CLASSES_ROOT\.bwt]

   23 @="DaemonTools.File"

   24 [HKEY_CLASSES_ROOT\.cdi]

   25 @="DaemonTools.File"

   26 [HKEY_CLASSES_ROOT\.ccd]

   27 @="DaemonTools.File"

   28 [HKEY_CLASSES_ROOT\.mds]

   29 @="DaemonTools.File"

   30 [HKEY_CLASSES_ROOT\.pdi]

   31 @="DaemonTools.File"

The above registry file is designed for two virtual drives. If you have more or less drives, you'll have to modify this area of the file:

    1 [HKEY_CLASSES_ROOT\DaemonTools.File\shell\mount1]

    2 @="Mount Image on Second Virtual Drive"

    3 [HKEY_CLASSES_ROOT\DaemonTools.File\shell\mount1\command]

    4 @="\"C:\\Program Files\\D-Tools\\daemon.exe\" -mount 1,\"%l\""

    5 [HKEY_CLASSES_ROOT\DaemonTools.File\shell\open]

    6 @="Mount Image on First Virtual Drive"

    7 [HKEY_CLASSES_ROOT\DaemonTools.File\shell\open\command]

    8 @="\"C:\\Program Files\\D-Tools\\daemon.exe\" -mount 0,\"%l\""

    9 For a third drive, simply add the following lines:

   10 [HKEY_CLASSES_ROOT\DaemonTools.File\shell\mount2]

   11 @="Mount Image on Third Virtual Drive"

   12 [HKEY_CLASSES_ROOT\DaemonTools.File\shell\mount2\command]

   13 @="\"C:\\Program Files\\D-Tools\\daemon.exe\" -mount 2,\"%l\""

 

Note that you must replace the path to the Daemon tools folder.

Downloads

daemontools_2drives_english.zip (548 Bytes)
A registry file preconfigured for 2 drives, for an english version of Windows.
daemontools_2drives_german.zip (541 Bytes)
A registry file preconfigured for 2 drives, for a german version of Windows.

Technorati:

Posted by Henning Krause on Friday, December 31, 2004 12:00 AM, last modified on Sunday, November 28, 2010 5:12 PM
Permalink | Post RSSRSS comment feed

 +Pingbacks and trackbacks (1)