|
|
Question : Making a CD autorun
|
|
I have a CD that contains avi tutorials. The avi files are selected by an index in an HTML file. I would like the CD to automatically open the default browser and show the appropriate HTML file. I know very little of Windows API. Ive used autorun before with InstallShield but that only works for setup programs. Any links to programs out there that will help me with this? (shareware, freeware, others) Thanks in advance. P.S. I need this to work in Win95/98/NT. Im using EasyCDPro 95 to create the CDs (if that matters) and have InstallShield Express 2.03 (if that matters)
|
Answer : Making a CD autorun
|
|
AutoPlay works in Windows 95 by looking at the CD, or CD-ROM, that the user inserts. If it's an audio CD then it is played but if it is a CD-ROM that contains an AUTORUN.INF file in the root directory then the instructions in this are run.
Autorun - Limitations AUTORUN.INF allows only programs, files that end in .exe or .com, to be run. AutoPlay was never intended to be used to automatically run other files, such as .htm, but StarterFile enables this limitation to be overcome.
AutoPlay was also only intended to work with CD-ROM but it can be made to work with other media such as floppy disks and Iomega zip drives and this is explained later.
Autorun - Example A typical AUTORUN.INF file to install software would be located in the root directory of the CD and contain three lines in text format (ASCII) like this: [autorun] open=setup.exe icon=setup.exe
Setup.exe would be expected to be found in the root directory of the CD.
--------------------------------------------------------------------------------
StarterFile - Example StarterFile is written to the CD-ROM along with AUTORUN.INF and enables any file to be launched, including HTML web pages.
A typical AUTORUN.INF file that includes StarterFile to launch the file welcome.htm would contain two lines in text format (ASCII) like this: [autorun] open=starterfile.exe start.htm
Autorun.inf, starterfile.exe and welcome.htm should all be written to the root directory of the CD.
There have been plenty of other question on this subject in EE - perhaps a EE search would prove helpful
|
|
|
|
|