You are here

detect flash media

5 posts / 0 new
Last post
Travis Carrico
Offline
Last seen: 15 years 7 months ago
Developer
Joined: 2006-10-22 00:30
detect flash media

is there any way to detect if a drive is flash media or not? someone said john may have a tool that does that but i don't know and i didn't see anything for it on the nsis plugins page.

Simeon
Simeon's picture
Offline
Last seen: 9 years 9 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
NSIS's

GetDrive function only detects FDD, HDD, CDROM, NET and RAM and I thing it sees flash drives as FDD. But as there are not so many real FDD around these days, I guess it could work.
The needed nsh file should be included in all of Johns Apps as he uses this function in every installer to find the drive with the PortableAppsMenu on it.
Hope that helps.

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

Travis Carrico
Offline
Last seen: 15 years 7 months ago
Developer
Joined: 2006-10-22 00:30
thanks

awesome!!! that works; it sees flash drives as FDD and usb hard drives as HDD. I only wonder what happens when using a solid state hdd

LOGAN-Portable
LOGAN-Portable's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-11 12:24
FDD and even USB FDD is just

FDD and even USB FDD is just a floppy disk drive (thus the DD)

Maybe there is UFD (USB Flash Drive) I don't know. But because a flash drive is not a disk or disc it's probably never named FDD.

I could be wrong though.

Jimbo
Offline
Last seen: 4 years 6 months ago
Joined: 2007-12-17 05:43
removable or not

Basically, it detects whether the drive has removable media or not, and it classifies flash drives a having removable media, whereas mechanical hard drives do not. (It is down to the USB device class).

Much software interprets these to be floppy disks (for removable) and hard disks (for non-removable), since they were the only types of drive that existed when the APIs and return codes were first being devised, way, waaaay, back when.

So now, Flash drives identify themselves as USB-mass-storage-with-removable-media, which gets simplified to removable media, which gets called an FDD.

Log in or register to post comments