Phoenix
Phoenix

Reputation: 81

How to make my vb.net app run from a single USB drive only?

I've developed an application in vb.net that can run from a usb drive. But i need my app to work only from that usb in which i distribute it.

If someone copies it to other Drive/USB, it must not work. Do u know how to implement this?

Upvotes: 3

Views: 1311

Answers (1)

halfdan
halfdan

Reputation: 34214

You could try to get a serial number/identical id from the drive you installed it to and configure your application to check against that id on startup.

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

Upvotes: 2

Related Questions