Virtual CD knowledge base


Tags VirtualCD

How can I disable autorun of inserted CDs

When you boot a Windows NT based Computer, the virtual CDs are first read after the login. Thereby, the autostart function for all CDs then starts; each time the setup menus appear and must be clicked away.

Windows 9x/ME and Windows NT based systems behave differently in their start procedure. Under Windows 9x/ME virtual CDs are read before the Autorun function is available. In contrast, Windows NT-based systems read the virtual CDs after the login procedure (when the Autorun function has already been initialized).

In Windows 7 the settings of "Use AutoPlay for all media and devices" determine what happens when a media or device is inserted ('Control Panel' -> 'All Control Panel Items' -> 'AutoPlay).

You can disable the autorun feature with 3rd party tools such as Microsoft's TweakUI. You can also manually change the responsible registry value

A reboot is necessary to activate these changes.

In order to prevent the autorun of virtual CDs and still keep the autorun for physical CDs, Windows NT/2000 offers the possibility of creating a definitions file for the CD (using an editor), deleting the AUTORUN.INF file, and then creating a virtual CD. (IMPORTANT: The size of the Virtual CD v3 is limited to 650 MB!) If particular virtual CDs are to be automatically started, you can define that particular start application in the container specifications.
Windows XP offers the possibility to change the autorun behavior for each CD-ROM drive and each CD type separately in its properties dialog (see also HINT 3).

Hint 1:
As an alternative, you can prevent the autorun of virtual CDs during the active autorun by removing the command "open=autorun.exe" from the AUTORUN.INF. Advantage: When an icon is located in the AUTORUN.INF ("icon=autorun.exe,0"), it will be displayed in the Explorer. Disadvantage: After the insertion of the virtual CD an Explorer window will open, showing the contents of he CD. If you delete the AUTORUN.INF completely, no icon will be displayed, but as well no Explorer window will be opened.

Hint 2:
You can prevent the autorun insertion of a CD (physical or virtual) by pressing the SHIFT-key when inserting the CD.

With Virtual CD v5 and higher you can suppress auto run for each virtual CD by checking the box "Suppress Autorun when the virtual CD is inserted" in the Image File Properties. This corresponds to the held SHIFT-key while inserting a CD. (see above).

If this doesn't always work, please increase the registry value "Wait" in HKEY_CURRENT_USER\Software\H+H Software GmbH\Virtual CD 5\VC5Play\Settings (default is 2000 = 2 seconds). The corresponing key for Virtual CD v6 ist ...\Virtual CD 6\VC6Play\Settings etc.

Hint 3:
With TweakUI for Windows XP you can deactivate autoplay for each CD drive (e.g. all virtual CD drives) separately.
Hint: If autoplay for a CD drive is deactivated, Windows Explorer can not show the CD label of the inserted CD.

Hint 4:
Microsoft recommends to turn off the automatic playing of CD-ROMs by using the Group Policy "Disable Autoplay" (not possible within "Home" versions of Windows XP/Vista/7).

If you want to turn off the automatic playing of CD-ROMs "manually", first make sure that the patch of MS KB967715 is installed.

At the next logon autorrun and autoplay are deactivated.

Note: Deactivating autorun as described in HINT 3 and 4 will have the effect that neither the icon nore the label name will be shown in the Windows Explorer anymore!


Article #500 | 12/30/11 | Hartmut Mäcker