How to make a Windows AutoPlay CD
This document covers how to make a CD that AutoPlay's in Windows and not general steps on how to enable or disable the Windows AutoPlay feature.
In Windows XP and earlier versions, create an autorun.inf file by clicking Start and selecting the Run option. Type notepad in the Run window and press Enter.
In Windows Vista and 7, create an autorun.inf file by clicking Start, typing notepad in the Search field. Click on the Notepad program in the search results.
In Windows 8 and later versions, create an autorun.inf file by pressing Ctrl+X to open the Power User Menu and selecting the Run option. Type notepad in the Run window and press Enter.
After opening the Notepad program, type the following:
In the above text where open is located, if your CD has an executable file other than "setup.exe" that you would like to run automatically, you would need to type it into this line. Next is the icon statement, which is where you can specify the icon to use for the CD. Enter the name of the icon file in the icon line.
Once the above three lines have been typed, save the file as autorun.inf and close the Notepad program.
Note: The autorun.inf file has some limited abilities, such as the inability to execute non-executable files. Often many users will want to create an autorun.inf file that executes an HTML file. However, entering something such as "open=index.html" causes an error. For a CD to execute an HTML file, a batch file, open a mail file, or almost any other file, try AutorunPro from GUI Computing Pty Ltd, available on our utility downloads page.