How Do You "Delete" A Portable Device?

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: How Do You "Delete" A Portable Device?

Re: How Do You "Delete" A Portable Device?

by BitPusher » Fri Sep 23, 2011 3:54 pm

Hi nynaevelan.

I tried your suggestion, but the only thing different was that WMDM did not appear in the device list. This might be because the WMDM device had already been grapped. I didn't try this after an uninstall/purge/reinstall.

However, since I know the operating charachteristics for USB devices I'm not going to worry about this anymore. If a WMDM device gets assigned I'll just disable the automatic scan and sync. Then just remember to have the USB device in ready status before starting MM.

Thanks again

Re: How Do You "Delete" A Portable Device?

by nynaevelan » Wed Sep 21, 2011 2:03 pm

Have you tried deleting the WDM dll to see if your USB devices are correctly identified?? I've never tested this but then I am in the habit of always deleting all the device dlls except the WDM because I do not want the others to show up since I do not use them.

Nyn

Re: How Do You "Delete" A Portable Device?

by BitPusher » Wed Sep 21, 2011 12:01 pm

Thanks for the reply nynaevelan.

I did more experimenting with my fresh install of MM V4 with the following USB devices:
A. SanDisk Cruzer 16gb formatted with NTFS.
B. Memorex traveldrve 2gb formatted with ExFAT.

Here are some of the things I discovered:
1. When plugging in a device in the first time the WMDM always "grabs" it but then it can be configured under the USBMass driver or a copy.
2. Once I plugged in the second device and it was grabbed by WMDM and then configured with a USBMass driver, the Delete button was now active for only WMDM devices. You can delete all but one of the WMDM devices. When there is only one left the Delete box is unselectable.
3. If you delete one of the WMDM devices that was reconfigured as a USB device, when plugging it in again the WMDM driver grabs it again. Therefore it seems pointless to Delete a WMDM entry that was configured with the USB driver since it will get added back. I don't have any WMDM devices to test with.
4. Once you set up a USB device in Configure/Options/Device Configuration "Device Name" field can be changed but it is not propagated to the main plugins window. The change is remembered when restarting MM and using REGEDIT I found that it is in HKCU/Software/MediaMonkey/Device key name USBName. Apparently the only way to update the main plugin screen is to edit the DeviceCaption field in the Devices Table.
5. Once the USB devices have been configured, if you have the device plugged in before starting MediaMonkey the USB configured device is shows as connected. However, if you plug it in when MM is running it always choses the WMDM entry.

So I guess I've learned that when using USB devices after they have been configures is to have them active before starting MM, and that you make sure you type the correct name you want in configuration unless you want to edit the MM DB to update the caption. Also, I think there should be some way to tell MM not to use particular WMDM device(s) to avoid the issue in #5 above.


BTW, I used SQLite Database Browser to look at the Medias table like you showed, but I didn't see any of the USB devices there. There were only 3 rows for Network, URL, and UpnP. The only place I found them in was the Devices table.

Thanks again for your reply and this has turned out to be a good learning experience and one more reason I have the test install of MM.

BitPusher

Re: How Do You "Delete" A Portable Device?

by nynaevelan » Tue Sep 20, 2011 5:31 pm

If you are comfortable using the sql viewer script, you can use this sql statement to identify the device id's

Code: Select all

SELECT * FROM Medias 
Then use this one to delete the devices from the table, you would change the id to the device you want to delete:

Code: Select all

DELETE  FROM Medias WHERE IDMedia = 4
On a side note, although I assume it is MMs intended behavior to leave the devices in there, it would be nice if MM gave you a native and easy way to delete old devices from your db.

Re: How Do You "Delete" A Portable Device?

by BitPusher » Tue Sep 20, 2011 5:09 pm

I tried deleting the .dll copy and restarted MM and sure enough the device didn't appear in the list. However, Just for "fun", I recopied the d_USBMass1.dll back to the same name as the .dll I had deleted and then restarted MM again. The device reappeared in the device list with the same name as before, so something must be being stored in the MM.DB or the INI file that isn't being deleted.

I'm going to completely uninstall my test MM including deleting the MM.DB and .ini file and reinstall from scratch to see if that will make the "Delete" box selectable.

If that doesn't make the "Delete" box selectable (like the "Configure" box) them I'm going to assume that its a bug, that I'm clueless as to how this is suppsed to work, or that the "Delete" box is for future use.

Re: How Do You "Delete" A Portable Device?

by nynaevelan » Tue Sep 20, 2011 12:13 pm

BitPusher:

Once you delete the dll when MM is closed and then you restart it, you will no longer see that device in the list of devices.

Re: How Do You "Delete" A Portable Device?

by rusty » Tue Sep 20, 2011 11:20 am

I haven't tested this, but I expect that once you delete that .dll, it shouldn't appear in the list of plugins.

-Rusty

Re: How Do You "Delete" A Portable Device?

by BitPusher » Mon Sep 19, 2011 10:50 pm

Thanks for the reply Rusty.

I only wanted to delete the one device that I won't be using anymore, not all USB devices.

So in order to delete the one device, I need to first delete the copy of the .DLL I made for it and then the "Delete" box will become active so I can remove its entry from the device list. Is that correct?

BitPusher

Re: How Do You "Delete" A Portable Device?

by rusty » Mon Sep 19, 2011 8:12 pm

The USB_MS plugin appears once for each instance of the .dll that exists. If you want to get rid of it entirely, rename the .dll to .dll.off.

In contrast, the wmdm plugin can be used for multiple devices, so you can delete all of them but the last one.

-Rusty

How Do You "Delete" A Portable Device?

by BitPusher » Mon Sep 19, 2011 6:14 pm

Not enough room in title area, but the question is, what conditions are necessary for the "Delete" box on the Available Devices/Plugins to become "Active"?

When testing I set up a USB WD 500 GB HDD by first copying d_USBMass1.dll to d_USBMass1-C1.dll and gave it a name of "WD 500G". Now that I'm through with testing that device, I wanted to do some clean-up but I can't get the Delete box to activate when the device is selected regardless of whether or not the "Show" checkbox is checked or not.

Running MM V4, B1433 "Test/Experimental" local install on Windows XP Professional, SP3. Not really a problem but would just like to eliminate some clutter.

BitPusher

Top