to create a autorun feature in your compiled / just like the professional compiled CD/DVD, well here is how you can do it too:
When you place a CD or DVD in the drive, Windows starts to look for a file named autorun.inf in the disk and executes the program in that is written in that file. Here is a way to create an autorun.inf for your own CD/DVD:
1.First open Notepad.
2. Enter the following two lines of code
(Note:prog_fileneame = name of the program you want to autorun!)
3. Save the above file as "autorun.inf"
4. Burn it on to the CD/DVD along with the program that you want to autorun, i.e. prog_filename.exe.