First check this
Control Panel/Administrative Tools/Services/Shell Hardware Detection/Return this
service to Automatic.
Then you can also open Windows Explorer, right click your CD-ROM drive, select
Properties, go to the AutoPlay tab, select the action to perform in each
category and remove the check from "Prompt me each time to choose an action,"
click apply and ok.