Link to home
Start Free TrialLog in
Avatar of dbtoth
dbtoth

asked on

Disable AutoInsert/AutoRun on NT/2K/XP *NO TWEAKUI*

NOTE: I need to fix this in CODE, I know tweakui will fix this but I can't make use of it. Please NO TWEAKUI responses, thanks.

I'm working on a CD burning application, and am having problems with the windows autoinsert interfering with my application.

When the CD is inserted, windows is popping up an explorer window with the drive contents.

I've used Prassi DVD/CD burning software, and it has a feature called "Autorun shield" which prevents this EXACT behavior. This is what I need to accomplish.

I've tried setting the registry value:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\CDROM -> Autorun DWORD = 0x00000000

Running REGEDIT shows that I switched it, but it's not working. When the CD gets inserted, I still get the pop up E:\ window showing the CD contents.

Any suggestions?
SOLUTION
Avatar of trghpy
trghpy

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sramesh2k
disable the shellhardware detection service.

Control Panel/Administrative Tools/Services/Shell Hardware Detection/Return this service to Disabled.
another option

right-click  cd drive properties  >autoplay
choose "take no action" for datacd.
To Disable CD Autoplay in Windows XP Pro

[1] Start/Run/GPEDIT.MSC
[2] Computer Configuration/Administrative Templates/System.
[3] Locate the entry for Turn Off Autoplay and modify.

Start/Run/Gpedit.msc/Computer Configuration/Administrative Templates/System. Check your settings in the right pane, Turn Off Autoplay (double click).

To Disable CD Autoplay, completely, in Windows XP Home

Click Start, Run and enter REGEDIT Then go to:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer

Name: NoDriveTypeAutoRun
Type: REG_DWORD

If NoDriveTypeAutoRun does not exist, create it and set its value to 145 (decimal).

Or...

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoDriveTypeAutoRun"=dword:0x000000FF

Start/Run/Regedit

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom
AutoRun = 0
Avatar of dbtoth
dbtoth

ASKER

trghpy and sramesh2k both provided answers of the type I was looking for, however neither of their suggestions worked. (sramesh2k, I checked both the administrive and user policies you indicated. Both are shown as "Not configured" in the policy editor)

With

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom > AutoRom = DWORD 0x00000000

and

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer > NoDriveTypeAutoRun = DWORD 0x000000FF (or 0x00000091)

The automatic setting of both was verified via REGEDIT once the application had loaded.

The bloody Windows E:\ window keeps auto-opening on insert of the drive

Any other ideas.... CODE/REGISTRY answers only please. I cannot invoke and system or third party GUI/tool to make this change.
Download tweakui for windows.  It will allow you to disable this feature without a maunal edit to the registry and it has lots of other cool tweaks and customizations.

Trey

http://www.microsoft.com/ntworkstation/downloads/PowerToys/Networking/NTTweakUI.asp
Windows 2000, Windows NT, Windows Millennium Edition, Windows 98 or Windows 95.


http://www.microsoft.com/windowsxp/pro/downloads/powertoys.asp
XP Only

sorry dbtoth, your post was not up when I fromed my answer :)

ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
try this

click start | run | regedit
goto this key:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers
use the file export option to backup the key **

Delete "EventHandlers" key
restart

NOTE: It is safe to take a backup of the above registry key.
try this

click start | run | regedit
goto this key:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers
use the file export option to backup the key **

Delete "EventHandlers" key
restart

NOTE: It is safe to take a backup of the above registry key.
Avatar of dbtoth

ASKER

None of the above will work. Question has been reasked in Programming area.

Administrator: I'd like to give 50 points to trghpy for uncovering a registry entry that I missed in my research.
the changes to the registry keys

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom        and

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer 0x00000091)

requrie a reboot to take effect.  What type of app are you writing and what language are you using?

If you have a setup program you could modify these keys durring setup and force a reboot, but that is kinda intrusive to diable all autoplay forever for all users.  

You be best off doing it programmatically  
Glad the artical pointed you in the right direction at least...

link to new question:

https://www.experts-exchange.com/questions/20695207/Programmatically-disable-autorun-C-NET.html

try this:

http://www.moonvalley.com/products/cdultra/disable.htm

note all the codes which define what drives to diable autoplay on
dbtoth:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.