How to make an Autorun CD


  • Create an Autorun.inf File
    Autorun.inf is a text file that is located in the root folder of your application CD-ROM. It provides to the computer the name and the location of the startup program for your application that is installed when the CD-ROM is inserted. The Autorun.inf file can also contain optional information including the following:
  • The name of a file that contains an icon that represents your application's CD-ROM drive. This icon appears in Windows Explorer instead of the standard drive icon.
  • Additional commands for the shortcut menu that appears when the user right-clicks the CD-ROM icon. You can also specify the default command that runs when the user double-clicks the icon. Autorun.inf files are similar to .ini files.
  • The [autorun] section contains the default Autorun commands. All Autorun.inf files must have an [autorun] section.
  • icon: Specifies the path and the file name of an application-specific icon for the CD-ROM drive.
  • open: Specifies the path and the file name of the startup application.

Autorun.inf

The following is an example of a simple Autorun.inf file. It specifies Filename.exe as the startup application. The second icon represents the CD-ROM drive instead of the standard drive icon.
[autorun]
open=Filename.exe
icon=Filename.ico