|
-
Jul 18th, 2000, 01:24 PM
#1
Thread Starter
Junior Member
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.
-
Jul 18th, 2000, 01:29 PM
#2
Hyperactive Member
possibly
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 ...
-
Jul 18th, 2000, 01:34 PM
#3
Monday Morning Lunatic
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...
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
The shell\xxx bits add another item to the CD-ROM drive context menu.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|