AutoRun v1.0 by DukeLupus
http://dukelupus.pri.ee

AutoRun (gee, what an original name) is very simple and basic application to create autorun menu for CD's or DVD's. You can change image, icon, caption, number and function of buttons and their appeareance. All changes are done by modifying the ini file and are very easy to understand.

For autoplay to work on your CD/DVD, you must also include file autorun.inf. Basic autorun.inf is included with this package, open it in Notepad to edit or view it. You can get more information about autorun.inf from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_extending/autorun/autoplay_cmds.asp

That said, I heavily recommend disabling CD/DVD autorun on your system. This is the worst feature ever, security-wise (remember Sony rootkits?!). Any inserted disc can start whatever its creators want to... security nightmare. See http://features.engadget.com/2004/06/29/how-to-tuesday-disable-autorun-on-windows/ for help on disabling autoplay/autorun feature or use TweakUI (freeware from Microsoft, http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx) to do that.



============= INI settings =================

Autorun.ini has two sections - [main] and [buttons]. Main holds information about how application appears, buttons unsurprisingly define what buttons your autorun has and what they will do. You can see uncommented example ini contents at the bottom of this file.

All comments here start with ;;, lines without it are actual ini contents.

;Section:
[main]
;; Note: You can skip the main section alltogether, in that case default values are used.

caption=AutoRun
;; defines the caption of the autorun window. For example, it could be: caption=Vacation photos, June 2006

icon=AutoRun.ico
;; Icon that is used for main window and application. 

image=AutoRun.bmp
;; Image on the left. It must be .bmp, but image dimensions are not limited.

imageurl=http://dukelupus.pri.ee
;; URL that opens when user clicks on the image. Can also be filename on disc or such.

url=http://example.com
;; URL in bottom left corner

flatbuttons=0
;; values are 0/1. Flat buttons look more stylish, but aren't as easy to see. Play with that setting.


;Section:

[buttons]
;; Buttons will be shown in same order as they appear in ini. You can have as little or as many buttons as you want to,
;; window will adjust its size to accommodate them. Buttons will also resize themselves if you use very long captions.
;; Format is "button caption=function". "Function" can be internet link, path to file on CD/DVD (remember to skip disc letter, 
;; ie "my applications\myapp.exe", not "d:\my applications\myapp.exe"), file to open in HDD ("Notepad=notepad.exe") etc.
;; If you link non-executable file (such as .avi, .doc or .txt), then it will be opened with the associated program.
;; You can create Alt+character shortcuts by prefixing character in name with "&" - for example, E&xit - alt+x will be same as
;; clicking on Exit button. If you need to have & in button caption, use "&&" - ie, to get "Night & Day", use "Night && Day".
;; You cannot have = (equals) character in the name. 
;; Browse and Exit are pre-defined values and can be used with any buttons. For example: &Browse contents of this DVD=Browse

;; these are all just sample buttons:

&Open .ini=AutoRun.ini
Notepad=notepad.exe
c:\=c:\
&Browse=Browse
Home page=http://example.com
E&xit=Exit




============ Uncommented Autorun.ini example =============

[main]
caption=AutoRun
image=AutoRun.bmp
icon=AutoRun.ico
imageurl=http://dukelupus.pri.ee
url=http://example.com
flatbuttons=0


[buttons]
&Open .ini=AutoRun.ini
Notepad=notepad.exe
c:\=c:\
&Browse=Browse
Home page=http://example.com
E&xit=Exit
