Disable Auto Play in Windows 7
Click the Start and Input "gpedit.msc" in search box, then click the result to open the gpedit.
Expand Administrative Templates >Windows Components > Autoplay Policies in order.Then double click "Turn off Autoplay"
Click Enabled, and then select All drives so that you can disable Autorun on all drives.Click Ok at last.
After restarting your computer, you have done all the needed work to disable Auto Play in Windows 7.