Find an autorun ini file from another place (like a game CD) and take a look at it. When you insert a CD into the computer, Windows searches for an autorun.ini file with instructions on what the computer should try to execture (usually an installer exe).
If you're talking about making an installer (like InstallShield) you're opening another can of worms. A big one.