I need an application to run only from a specific USB drive. I conducted several tests with the WMI Win32_Diskdrive class and the PNPdeviceID property. Itβs very good to register the application on the license server (web services) with this data, but I am looking for a second method to reuse it to make the process more complicated.
I was thinking of creating a second small hidden partition in the disk and finding the name in it as a sequential PNPdeviceID file or other information. Any other idea, method or suggestion is accepted.
Thanks in advance.
EDIT: I already know the unique identifier from the USB flash drive, and the application can check if the Interfacetype property is βUSBβ. I launched the application with the PNPDeviceID hash in a license-driven web service. I am looking for an additional second verification method.
source share