Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hey guys,

i am making a game and have made a simple installer for it, but i want an autorun type of thing. if i have the installer on a usb, am i able to put in something so that when i insert the usb, it will start up the installer automatically?

thanks!
Posted

1 solution

In the root of the USB, put a file named AUTORUN.INF that contains the following two lines:
[autorun]
OPEN=SETUP.EXE


Note: On some PCs, administrators have disabled the capability to do AutoRun.
 
Share this answer
 
v2
Comments
fjdiewornncalwe 20-Feb-13 9:18am    
My 5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900