开发者

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

开发者 https://www.devze.com 2023-01-15 13:26 出处:网络
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.

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?开发者_JS百科


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

0

精彩评论

暂无评论...
验证码 换一张
取 消