Normally when you insert a disc into your CD-ROM drive, the contents are automatically launched. This tweak allows you to disable this behavior.
Open your registry and find the key below.
Change the value of 'Autorun', or create a new DWORD value if it doesn't already exist, and set the data to equal '0' for Autorun disabled.
Restart your computer for the changes to take effect.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CDRom
This applies to all versions of Windows. See here:
http://www.winguides.com/registry/display.php/6/
(Sometimes when I cut and paste URL's it looks ok to me but once the answer is posted, an extraneous space will have crept in. Make sure you delete any extraneous spaces or the page won't load).
Settings
Key: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CDRom]
Value Name: Autorun
Data Type: REG_DWORD (DWORD Value)
Value Data: (0=disable, 1=enable)