Discussion Locked

Hardware Detection Causes Registry Error

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

While trying to clean up a users machine prior to installing a program I ran RegClean and found that it would lock up and produce an "illegal operation" message just as it was almost done. After clicking on the "Fix Errors" button, RegClean would gothrough its gyrations and get 95-or-so complete on the last run and would lock up. As an alternate I installed and attempted to run EasyCleaner and found that the initial "Language Selection" box displayed no languages availabe which, basically, meant it could not be run either. Also, I would run RegVac and still have no success in clearing this error. The "illegal operation" message referred to "advapi32.dll." User is running Win95 w/64k and P120. After much frustration with this issue I decided to reinstall Win95 but run into problems at the point that "setup" tries to detect and/or install hardware. A "Detection Error" message box pops up, telling me that "Detection returned the following error: Registry access failed." And at that point "setup" stops. The culprit looks to be either the sound card or the CD-ROM. The CD-ROM works fine so I suspect the sound card. Any thoughts here would be greatly appreciated. Thanks.

Brian S.
IT Desktop Support
Gopher Sport

3 replies

by legj1

This is pretty much straight from TECHNET... Hope it helps!

This behavior may occur if the Advapi32.dll file located in the Windows\System
folder is missing or damaged.

To resolve this, follow these steps:

1. Rename the Advapi32.dll file (if it exists). To do so, follow these steps:

a. Click Start, point to Find, and then click Files Or Folders.

b. In the Named box, type "advapi32.dll" (without the quotation marks), and
then click Find Now.

c. If the Advapi32.dll file is found, right-click it, and then click Rename.
If the Advapi32.dll file is not found, skip to step E.

d. Type a new name for the Advapi32.dll file (such as Advapi32.xxx), and then
press ENTER.

e. Close the Find window.

2. Extract a new copy of the Advapi32.dll file from your original Windows 95
disks or CD-ROM. The Advapi32.dll file is located in the following
locations:

- The Win95_11.cab cabinet file on the Windows 95 CD-ROM.
- The Win95_17.cab cabinet file on the Windows 95 OEM Service Release 2
(OSR2) CD-ROM.

- The Win95_11.cab cabinet file on disk 11 of the original Windows 95 DMF
floppy disks.

- The Win95_18.cab cabinet file on disk18 of the original Windows 95
non-DMF floppy disks.

by brian @ gs

Thanks to legj1@earthlink.net for the response which was helpful to a degree. After extracting the advapi32.dll file I reran RegClean. It ran almost completely until it gave an "illegal operation" message referring to "regclean.exe." I think a reinstall of RegClean may help. So, although I was able to be rid of the advapi32.dll error message, I gained a new one. Thanks, again, to legj1@earthlink.net and I'll keep looking.

This discussion is closed to new replies.