I just noticed that you need Daemon Tools running to unmount it, what I normally do is right click on the ISO file and open with, and choose daemon tools. That mounts it, does not open the program.
I was trying to mount ISOs the same way as you described and I was wondering if I was missing something because I get "Error in command line." when I right click on the ISO and chose Open With DTLite.exe (DAEMON Tools Lite in the Open With menu). I tried the other two exe's in the Daemon Tools Lite folder in Program Files and they don't do anything at all. How'd you get this to work?
Here's the batch file you need. Very simple. Just put it where you want it, name it what you want, and you could create a shortcut to it, choose Properties for the shortcut and set the icon for it to point to Daemon Tools Lite's icon.
It will unmount ALL images you currently have loaded, in case you have more than one virtual drive active and mounted at the same time. We could do fancier things like create different batch files for unmounting specific drives, et cetera.
Then it will force kill the DTLite.exe process. DTLiteShellHlp.exe will still remain running, it appears to stay running as long as DT is installed, even trying to kill it didn't work, at least not from the Task Manager, although I didn't try the force kill option from the command line like I did to DTLite.exe in the batch file.
We could make it fancier and use environment variables in case your Windows is not on the C: drive as well.
Code:
"C:\Program Files\DAEMON Tools Lite\DTLite.exe" -unmount_all
taskkill /IM “DTLite.exe” /F
As usual with Windows when the process is killed the notification icon will "appear" to still be active but when you hover over it with the mouse it will simply disappear. This is normal. I have the DT notification icon hidden anyway.
References:
http://www.daemon-help.com/windows_integration_lite/command_line_parameters.html
and
http://technet.microsoft.com/en-us/library/bb491009.aspx
Enjoy!