An Autorun Menu is the list of items presented to the user
in the Context menu, (Right mouse click) on the CD in Explorer
or My Computer. This menu, its items and the functions that
they perform are defined in the Autorun.inf file.
This section describes the configuration of the Autorun.inf
file that creates menu items.
| EXAMPLE AUTORUN FILE: |
DEFINITION: |
| [autorun] |
The flag used to signify the start
of the Autorun procedures. All autorun instructions follow
this flag. |
| open=filename.exe /argument1
|
An instruction to the system to open
the program called filename.exe in the current
directory passing in argument1 as the supplied
parameter. |
| icon=\foldername\filename.dll,5
|
This command sets the icon of the
drive that the autorun CD is inserted into. Windows is
instructed to set the CD-ROM icon as the 5th icon found
within the filename.dll library. |
| shell\install = &Install |
shell\install = &Install
Shell is the keyword to define the item to be
added to the Popup or Context menu. \install is
the keyword modifier distinguishing the Popup or Context
menu item from others. &Install is the value
defining the text to be displayed in the Popup menu. The
ampersand preceding Install, defines the Hotkey for that
item. |
| shell\install\command
= setup.exe |
shell\install\command is the
keyword defining that an action is to be taken. setup.exe
is the value defining the action to be taken when the
user selects the item in the Popup menu. |
| shell\uninstall = &UnInstall |
Additional Popup menu examples: Uninstall
runs an uninstall application |
| shell\uninstall\command
= Uninstall.exe |
|
| shell\readme = &Read Me |
Readme displays a readme file
using notepad passing the filename readme.txt as an argument. |
| shell\readme\command =
notepad readme.txt |
|
| shell\help = &Help |
Help displays a helpfile using
the default registration of winhelp |
| shell\help\command = helpfilename.hlp |
|
|
Note: Each of the shell keywords are followed
by a unique modifier distinguishing each context menu
items and providing an id association to their action.
|