


When AutoPlay prompts the user for an application to use with the volume, it displays only applications that have registered for the specified custom event name.

You can include a custom event name in the Autorun.inf file of a volume. The name must be no more than 100 alphanumeric characters. CustomEvent=CustomEventNameĪ text string containing the name of the AutoPlay content event. The CustomEvent entry specifies a custom AutoPlay content event. If no action entry is present, the Autoplay dialog is displayed but with no option to launch the additional content. The action entry is mandatory for devices of type DRIVE_REMOVABLE, which until now did not have Autorun.inf support. For this type, a default entry is used in the Autoplay dialog if no action entry is present in the Autorun.inf file. They should indicate the application to be run, the company that created it, and any associated branding.įor backward compatibility, the action entry is optional for devices of type DRIVE_FIXED. They should be composed in such a way that users can easily identify them. The action and icon keys together define the representation of the application that is seen by the end user in the Autoplay dialog. The Always do the selected action option is not available in this situation. If the user accepts the option, the application specified by the open or shellexecute entry in the media's Autorun.inf file is launched.

This entry always appears as the first option in the Autoplay dialog and is selected by default. The string displayed in the Autoplay dialog is constructed by combining the text specified in the action entry with hard-coded text naming the provider, provided by the Shell. An action command in the Autorun.inf file of an audio CD or movie DVD is ignored, and these media continue to behave as in Windows XP Service Pack 1 (SP1) and earlier. In the case of DRIVE_REMOVABLE, the action key is required. It is only supported for drives of type DRIVE_REMOVABLE and DRIVE_FIXED. The action key is only used in Windows XP Service Pack 2 (SP2) or later. The ID of the string within the binary file. If no path is specified, the file must be in the drive's root directory.Ī string that contains the binary file's name. that is used in the Autoplay dialog for the handler representing the program specified in the open or shellexecute entry in the media's Autorun.inf file.Ī string that contains the fully qualified path of the directory that contains the binary file containing the string. The value can be expressed as either text or as a resource stored in a binary. The action entry specifies the text that is used in the Autoplay dialog for the handler representing the program specified in the open or shellexecute entry in the media's Autorun.inf file. This topic is a reference for the entries that can be used in an Autorun.inf file.
