Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. When I put CD in drive, how do make it automatically execute setup.exe?

When I put CD in drive, how do make it automatically execute setup.exe?

Scheduled Pinned Locked Moved C / C++ / MFC
questionworkspace
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DanYELL
    wrote on last edited by
    #1

    When I put microsoft software into the CD drive, the CD automatically starts spinning and something will pop up so I can begin installing the software. When I put my software into a CD drive, nothing happens. How do I make the CD automatically execute the setup.exe? Please, any response any one can give me will be greatly appreciated. Sincerely, Danielle (an overworked graduate student)

    G C R 3 Replies Last reply
    0
    • D DanYELL

      When I put microsoft software into the CD drive, the CD automatically starts spinning and something will pop up so I can begin installing the software. When I put my software into a CD drive, nothing happens. How do I make the CD automatically execute the setup.exe? Please, any response any one can give me will be greatly appreciated. Sincerely, Danielle (an overworked graduate student)

      G Offline
      G Offline
      Greven
      wrote on last edited by
      #2

      You need to make an autorun.ini. I don't remember the exact sytax of the file off the top of my head, but if you take one of those CD's that does it and look at the file, it's very obvious. Are you sure you want it to run setup automatically? A lot of those CD's have an autorun.exe that is simply a menu that can execute the setup. That way it doesn't start to install every time you put the CD in. Programming in binary is as easy as 01 10 11.

      N 1 Reply Last reply
      0
      • D DanYELL

        When I put microsoft software into the CD drive, the CD automatically starts spinning and something will pop up so I can begin installing the software. When I put my software into a CD drive, nothing happens. How do I make the CD automatically execute the setup.exe? Please, any response any one can give me will be greatly appreciated. Sincerely, Danielle (an overworked graduate student)

        C Offline
        C Offline
        Carlos Antollini
        wrote on last edited by
        #3

        From the MSDN:

        _The minimalist AUTORUN.INF file only needs to contain three lines of text:

        [autorun]
        open=filename.exe
        icon=filename.ico_

        Best Regards Carlos Antollini. Sonork ID 100.10529 cantollini

        1 Reply Last reply
        0
        • G Greven

          You need to make an autorun.ini. I don't remember the exact sytax of the file off the top of my head, but if you take one of those CD's that does it and look at the file, it's very obvious. Are you sure you want it to run setup automatically? A lot of those CD's have an autorun.exe that is simply a menu that can execute the setup. That way it doesn't start to install every time you put the CD in. Programming in binary is as easy as 01 10 11.

          N Offline
          N Offline
          Nish Nishant
          wrote on last edited by
          #4

          Greven wrote: You need to make an autorun.ini Actually it is autorun.inf Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut

          1 Reply Last reply
          0
          • D DanYELL

            When I put microsoft software into the CD drive, the CD automatically starts spinning and something will pop up so I can begin installing the software. When I put my software into a CD drive, nothing happens. How do I make the CD automatically execute the setup.exe? Please, any response any one can give me will be greatly appreciated. Sincerely, Danielle (an overworked graduate student)

            R Offline
            R Offline
            Ravi Bhavnani
            wrote on last edited by
            #5

            If you want to get (mildly) crazy, check out http://www.naughter.com/autoplay.html. /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups