Windows, more "How to..." page 3

 

Section 22: Windows, more "How to...."
  1. How to Create Auto-Run
  2. How to Correct MS-DOS Compatibility Mode Problems with PCI IDE Controllers (Q151911)
  3. USB Input Devices Do Not work in Safe Mode or Real Mode (Q256300)
  4. Windows IDE Hard Drive Cache Package (Credit: Phil~pkeyrich)
  5. Microsoft CD Player Does Not Play Audio CD-ROMs (Q14366) Care of Debra

This Section contains information from Microsoft`s KB

 

 

win1-2-1: How to Create Auto-Run

Creating an AutoRun-Enabled Application

Creating an AutoRun-enabled CD-ROM application is a straightforward procedure. You simply include two essential files:

When a user inserts a disc into a CD-ROM drive on a AutoRun-compatible computer, the system immediately checks to see if the disc has a personal computer file system. If it does, the system searches for a file named Autorun.inf. This file specifies setup application that will be run, along with a variety of optional settings. The startup application typically installs, uninstalls, configures, and perhaps runs the application.

Creating an Autorun.inf File

Autorun.inf is a text file located in the root directory of the CD-ROM that contains your application. Its primary function is to provide the system with the name and location of the application's startup program that will be run when the disc is inserted. The Autorun.inf file can also contain optional information including:

Autorun.inf files are similar to .ini files. They consist of one or more sections, each headed by a name enclosed in square brackets. Each section contains a series of commands that will be run by the shell when the disc is inserted. There are two sections that are currently defined for Autorun.inf files:

Note The shell checks for an architecture-specific section first. If it does not find one, it uses the information in the [autorun] section. After the shell finds a section, it ignores all others, so each section must be self-contained.

Each section contains a series of commands that determine how the Autorun operation takes place. There are five commands available:

Command Description
defaulticon Specifies the default icon for the application.
icon Specifies the path and file name of an application-specific icon for the CD-ROM drive.
open Specifies the path and file name of the startup application.
shell Defines the default command in the CD-ROM's context menu.
shell\verb Adds commands to the CD-ROM's context menu.

The following is an example of a simple Autorun.inf file. It specifies Filename.exe as the startup application. The second icon in Filename.exe will represent the CD-ROM drive instead of the standard drive icon.

[autorun] 
open=Filename.exe 
icon=Filename.exe,1 

This Autorun.inf sample runs different startup applications depending on the type of computer:

[autorun] 
open=Filename_x86.exe 
icon=IconFile.ico 

[autorun.alpha] 
open=Filename_RISC.exe 
icon=IconFile.ico 
 

Tips for Writing AutoRun Startup Applications

There are essentially no constraints on how to write an AutoRun startup application. You can implement it to do whatever you find necessary to install, uninstall, configure, or run your application. However, the following tips provide some guidelines to implementing an effective AutoRun startup application.

© 2000 Microsoft Corporation. All rights reserved. Terms of use.

Back to Top Back to CD/RW

win1-2-2: How to Correct MS-DOS Compatibility Mode Problems with PCI IDE Controllers (Q151911)

 

MS-DOS Compatibility Mode Problems with PCI IDE Controllers

The information in this article applies to:

If this article does not describe your hardware-related issue, please see the following Microsoft Web site to view more articles about hardware:

http://support.microsoft.com/support/windows/topics/hardware/hwddresctr.asp

 

IMPORTANT: This article contains information about editing the registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs. For information about how to do this, view the "Restoring the Registry" Help topic in Regedit.exe or the "Restoring a Registry Key" Help topic in Regedt32.exe.

SYMPTOMS

If your computer contains a Peripheral Component Interconnect (PCI) Integrated Drive Electronics (IDE) hard disk controller that employs serialization between the two IDE channels, you may experience the following behaviors:

If you uninstall and then reinstall the hard disk controller, this behavior is not resolved.

CAUSE

This behavior can occur if the protected-mode driver for the hard disk controller is not properly initialized when you start Windows. When this occurs, a NOIDE value is placed in the registry which prevents Windows from making future attempts to initialize the protected-mode driver.

RESOLUTION

WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.

For information about how to edit the registry, view the "Changing Keys and Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete Information in the Registry" and "Edit Registry Data" Help topics in Regedt32.exe. Note that you should back up the registry before you edit it. If you are running Windows NT or Windows 2000, you should also update your Emergency Repair Disk (ERD).

NOTE: The purpose of the registry value that is mentioned in this section is to prevent damaged data. Before you modify this registry value, it is recommended that you perform the troubleshooting steps in the following Microsoft Knowledge Base article:

Q130179 Troubleshooting MS-DOS Compatibility Mode on Hard Disks

All Versions

To cause Windows to attempt to reinitialize the protected-mode IDE driver:

  1. Click Start, click Run, type regedit in the Open box, and then press ENTER.

  2. Locate and click the following registry key:

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\IOS
  3. In the right pane, right-click the NOIDE value, and then click Delete.

  4. Quit Registry Editor.

After you update the registry, restart Windows. Windows attempts to initialize the protected-mode driver for the controller. If Windows can initialize the protected-mode driver for the controller, the file system and virtual memory operate in 32-bit mode and Device Manager does not display an exclamation point in a yellow circle for the IDE channels.

If the protected-mode driver is not initialized properly, you receive an error message and the NOIDE value is re-created. Windows uses the MS-DOS Compatibility mode file system the next time that you start the computer.

Windows 98 Only

If you are running Windows 98 on your computer, locate the Tools\Mtsutil folder on the Windows 98 CD-ROM, right-click the Noide.inf file, and then click Install. When you do this, the NOIDE value is deleted if it exists. After you use this file, restart your computer.

MORE INFORMATION

This issue can occur if your computer has an IDE controller that requires serialization between the primary and secondary IDE channels. The protected-mode drivers for these IDE controllers may not be initialized if one of the following situations occurs:

The Windows device drivers for the following controllers may cause this behavior:

Other PCI IDE controllers that use serialization between the IDE channels may also cause this behavior.

Back to Top Back to CD/RW

win1-2-3: USB Input Devices Do Not work in Safe Mode or Real Mode (Q256300)

 

USB Input Devices Do Not Work in Safe Mode or Real Mode

The information in this article applies to:

If this article does not describe your hardware-related issue, please see the following Microsoft Web site to view more articles about hardware:

http://support.microsoft.com/support/windows/topics/hardware/hwddresctr.asp

SYMPTOMS

When you run Windows Millennium Edition (Me) Setup from a command prompt, you are running Windows Me in Safe mode, or you start your computer with a Windows Me Startup disk, Universal Serial Bus (USB) input devices (keyboard, mouse, and so on) may not work.

CAUSE

USB input devices require USB legacy emulation to work correctly in Real mode (MS-DOS) and Safe mode.

RESOLUTION

You can enable this hardware support in the computer's's BIOS settings if the computer's motherboard supports it. For information about whether your hardware supports USB legacy emulation, please contact your hardware manufacturer. For information about how to contact your hardware manufacturer, click the appropriate article number below to view the article in the Microsoft Knowledge Base:

Q65416 Hardware and Software Third-Party Vendor Contact List, A-K

Q60781 Hardware and Software Third-Party Vendor Contact List, L-P

Q60782 Hardware and Software Third-Party Vendor Contact List, Q-Z

WORKAROUND

To work around this behavior, connect a standard PS/2 keyboard or mouse to the PS/2 port in the back of the computer, and then reboot the computer.

MORE INFORMATION

Windows Me does not load drivers in Real mode or Safe mode for USB host controllers and USB devices attached to the USB ports

Back to Top Back to CD/RW

win1-2-4: Windows IDE Hard Drive Cache Package (Credit: Phil~pkeyrich)

Go to:

http://corporate.windowsupdate.microsoft.com/en/default.asp

Select the Search option, then click on the Software Updates tab, then type "HARD DRIVE CACHE" into the Keyword Search box, then put check marks in all of the boxes below that and click on the "Next" arrow. There are three results - one for Windows 98 with I.E. 5.0x, one for Windows 98 with I.E. 5.5, and one for Windows ME. Pick the one that matches your O/S and I.E. versions.

 

Back to Top Back to CD/RW

win1-2-5:  Microsoft CD Player Does Not Play Audio CD-ROMs (Q14366) Care of Debra

Microsoft CD Player Does Not Play Audio CD-ROMs
View products that this article applies to.
This article was previously published under Q148366
SYMPTOMS
When you insert an audio CD-ROM into your CD-ROM drive, Microsoft CD Player may not start automatically or when you attempt to start the CD Player, you receive one of the following error messages:

Please insert an audio compact disc.
-or-

Data or no disc loaded.
CAUSE
This behavior can occur if the CD-ROM audio device driver is missing or damaged.
RESOLUTION
To resolve this behavior, remove and reinstall the CD Audio Device driver and check your DMA setting:
Click Start, point to Settings, click Control Panel, and then double-click Multimedia.
Click the Devices tab, double-click the Media Control Devices branch to expand it, click CD Audio Device (Media Control), and then click Properties.
Click Remove, click Yes when you are prompted to remove the device, click OK, click OK, and then restart your computer.
Click Start, point to Settings, click Control Panel, and then double-click Add New Hardware.
Click Next, click Next, click No, I want to select the hardware from a list, click Sound, video, and game controllers, and then click Next.
In the Manufacturers box, click Microsoft MCI, in the Models box, click CD Audio Device (Media Control), click Next, click Finish, and then click Yes.
Click Start, point to Settings, click Control Panel, and then double-click System.
Click the Device Manager tab, double-click the CDROM branch to expand it, and then click the CD-ROM drive.
Click Properties, click the Settings tab, click to clear the DMA check box, click OK, and then click OK.
The information in this article applies to:
Microsoft Windows Millennium Edition
Microsoft Windows 95
Microsoft Windows 98

Back to Top Back to CD/RW