Anyone know if it's possible or how to put a VB program on a CD that will run automatically when the CD is inserted and the program won't have to first install the VB run-time files on the computer first.
Printable View
Anyone know if it's possible or how to put a VB program on a CD that will run automatically when the CD is inserted and the program won't have to first install the VB run-time files on the computer first.
i don't know if your program will run if the user doesn't have the neccessary run-time files but yes it is possible for programs to run or open up as soon as its cd is inserted ... you have to create an *.ini file called autorun ... i don't exactly remember this but after you create that *.ini all you have to do is burn it to a cd ... then if the cd-rom has autoplay it will run the program in the cd ...
Use a silent setup program for the autorun, which installs the VB DLLs, then on completion runs your program. There'll be a slight delay before your program runs, but nothing too major.
Sample AUTORUN.INF follows...
The shell\xxx bits add another item to the CD-ROM drive context menu.Code:[autorun]
OPEN=setup.exe /check
ICON=setup.exe,1
shell\configure=&Configure...
shell\configure\command=setup.exe /configure
shell\install=&Install...
shell\install\command=setup.exe /install