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.
New: Kanri (Oct 9, '24), Platform 29.5.3 (Jun 27, '24)
1,100+ portable packages, 1.1 billion downloads
No Ads November!, Please donate today
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
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
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.
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.