How to run a program from USB? [closed]
-
28-10-2019 - |
题
We have a program. We provide this program to client in USB. The Requirement is that when USB is inserted it checks whether the Installer present in USB is already installed on the system or not? If the Installer on the USB is not installed on the system then it Runs the Installer. How can I do this?? Any Suggestion will be appreciated..
Thanks
解决方案
Normal approach is to use autorun.inf the follow article will describe it : http://www.samlogic.net/articles/autorun-usb-flash-drive.htm
The next is up to you, but usually it will be to create some application, which will check your speciffic installation options and run the setup if nessesary.
added : About your additional wish - to use autoplay without autorun enabled, check the follow article : http://www.samlogic.net/articles/autorun-usb-flash-drive-windows-7.htm
maybe you will be interested in : "Use a U3 smart drive (or similar)." paragraph inside the article.