HOWTO: Enabling Autorun for Applications Distributed on CD-ROMLast reviewed: July 30, 1997Article ID: Q172078 |
The information in this article applies to:
SUMMARYWindows 95 and Windows NT 4.0 both support the Autorun feature for CD-ROMS. The Autorun feature detects when a CD is inserted into the CD-ROM drive and runs an application based on the contents of the Autorun.inf file located on the CD. A common use of this Autorun feature is to launch an application's setup when the CD is inserted. This article outlines the process of enabling this feature for a Visual FoxPro application.
MORE INFORMATIONWhen a CD is inserted into the CD-ROM drive, the operating system checks for a file named Autorun.inf in the root directory of the CD. This file contains a pointer to an executable file named Autorun.exe. The following Autorun.inf file was taken from the Windows 95 CD:
[autorun] OPEN=AUTORUN\AUTORUN.EXE ICON=AUTORUN\WIN95CD.ICOThe OPEN= entry indicates the location of the Autorun.exe file, and the ICON= entry indicates the icon used to represent the CD-ROM drive in the Windows Explorer. To create an Autorun.inf file that launches a Visual FoxPro setup routine, you must first create the distribution set using the Setup Wizard. Once the distribution set has been created, rename Setup.exe to Autorun.exe, and rename Setup.lst to Autorun.lst. Create a new text file named Autorun.inf with the following contents:
[autorun] OPEN=AUTORUN.EXEPlace this file and all the files from the distribution set in the root directory of the CD. When the CD is inserted into the CD-ROM drive, the application's setup should be launched.
REFERENCESFor additional information, please see the following article(s) in the Microsoft Knowledge Base:
ARTICLE-ID: Q152395 TITLE : HOWTO: Using Setup Wizard to Distribute VFP App on CD-ROM ARTICLE-ID: Q136214 TITLE : How to Test Autorun.inf Files Keywords : FxsetupGeneral Version : WINDOWS:5.0,5.0a Platform : WINDOWS Issue type : kbhowto |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |