

Specifies the default icon for the application. After the Shell finds a section, it ignores all others, so each section must be self-contained.Įach section contains a series of commands that determine how the Autorun operation takes place. If it does not find one, it uses the information in the section. Note The Shell checks for an architecture-specific section first. When a disc is inserted in a CD-ROM drive on a RISC-based system, the Shell will run the commands in this section instead of those in the section. An optional section can be included for systems running on RISC-based computers.All Autorun.inf files must have an section. The section contains the default AutoRun commands.There are two sections that are currently defined for Autorun.inf files. Each section contains a series of commands that will be run by the Shell when the disc is inserted. They consist of one or more sections, each headed by a name enclosed in square brackets. You can also specify the default command that is run when the user double-clicks the icon.Īutorun.inf files are similar to. Additional commands for the shortcut menu that is displayed when the user right-clicks the CD-ROM icon.This icon will be displayed by Windows Explorer in place of the standard drive icon. The name of a file that contains an icon that will represent your application's CD-ROM drive.The Autorun.inf file can also contain optional information including: Note Autorun.inf files are not supported under Windows XP for drives that return DRIVE_REMOVABLE from GetDriveType. Its primary function is to provide the system with the name and location of the application's startup program that will be run when the disc is inserted. The startup application typically installs, uninstalls, configures, and perhaps runs the application.Īutorun.inf is a text file located in the root directory of the CD-ROM that contains your application. This file specifies a setup application that will be run, along with a variety of optional settings. If it does, the system searches for a file named Autorun.inf. When a user inserts a disc into a CD-ROM drive on a AutoRun-compatible computer, the system immediately checks to see if the disc has a personal computer file system.

To enable AutoRun in your application, you simply include two essential files: This topic uses CD-ROM as an example (it was the first medium to implement this technology) but today there are many different media types that can use it. Creating an AutoRun-enabled application is a straightforward procedure.
