How can “Install or run program from your media” be disabled?
Recently something in Windows 7 has changed such that the default action for removable drives has become Install or run program from your media instead of Open.
I checked the AutoPlay control panel applet and everything is set to Take no action (in fact, the master check-box Use AutoPlay for all media and devices is cleared as well).
I also searched through the CLSID
key in the register and could not find it in any of the Shell
keys, so I figure it must be in one of the ShellEx
keys.
Finally, I searched for information on this, but found nothing on how to disable (or better yet, remove) that option and revert the default action to Open.
I found the solution by deleting the following registry key (where X
is the letter assigned to the volume in question):
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\X
Similar to DiableNoir's advice, if that didn't work out for you, please try the following:
- Open the Run dialog (Windows key + R), and type
gpedit.msc
The Local Group Policy Editor appears.
- In the left Pane, Expand
Computer Configuration
- Expand
Administrative Templates
, underComputer Configuration
- Expand
Windows Components
underAdministrative Templates
- Click
AutoPlay Policies
In the AutoPlay Policies pane:
- Double-click the
Set the default behavior for AutoRun
list option - In the corresponding dialog that appears, on the left, click the
Enable
button - Down the bottom of that window, under
Options
, selectDo not execute any autorun commands
from the dropdown menu. - Click OK.
Restart your computer.
I've seen such problems yet. I've tried your listed methods, and without result.
The shortest way was to run Kaspersky Internet Security and start "Vulnerability Scan".
It found that 'autoplays' of CD/DVD, USB drive, HDD and network disks are enabled and disabled them.
NONE of this worked for me. What I did instead was regedit search for "Install or run program from your media, and then regedit found two instances of that in Mountpoints2 as mentioned above.
Next for each CLSID (sp?) I deleted the "Autorun" folder-looking entry.
This made the default action change to OPEN immediately (no logout or reboot needed).
EDIT: I should add that after doing the above, my problem came back again. I found out that a disc emulation app, Daemon Tools, was creating this registry entry again with each new run or mount of a disc image, whichever the case.
I then went into Control Panel | Autoplay and toggled everything off again, uncheckmarked "Use AntoPLay for all media and devices, and changed some drive (volume) letter assignments so they weren't being swapped back and forth every time I put some new media in, USB flash drives for example.