Binding Application (exe) to USB

Apr 24 2014 9:09 AM
Hello,  
This is my first post here.   Been developing in the .NET platform for a long time now; however I mostly focused on developing web application, enterprise level applications.   I have been asked to develop a windows application that will run off of a USB drive.   I need to find out how to make it so that the application only runs when the USB is in.   It doesn't matter if the USB does an install first or not, but the requirement is that the USB must be in for the application to start up.  The application will be built using .net 4.5 in C#.  
I haven't done this before so any help will be appreciated.


One thing I forgot to mention in the original post is that each exe needs to be bound to the particular USB its put on.  This means that if someone copied it from one USB to another that it wouldn't function.   I think I need to look at the vid or the pid. 
 

Answers (4)