Results 1 to 3 of 3

Thread: Autorun VB program on CD

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 1999
    Location
    Portland, OR, USA
    Posts
    23
    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.

  2. #2
    Hyperactive Member theman32x's Avatar
    Join Date
    May 2000
    Location
    New Jersey, USA
    Posts
    305

    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 ...

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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
  •  



Click Here to Expand Forum to Full Width