How to make vb.net application work from only one USB drive?

I developed an application in vb.net that can run from a USB drive. But I need my application to work only with the USB in which I distribute it.

If someone copies it to another drive / USB, it should not work. Do you know how to implement this?

+3
source share
1 answer

You can try to get the serial number / identical identifier from the disk on which you installed it, and configure the application to check this identifier at startup.

There is an article on how to get the serial number of a USB drive here: http://www.cfdan.com/posts/Retrieving_Non-Volatile_USB_Serial_Number_Using_C_Sharp.cfm

+2

Source: https://habr.com/ru/post/1764302/


All Articles