Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
05-01-2007 07:42 AM
How to recover corrupted Vista driver database
[ Edited ]Logi Browser
Posts: 11
Trying to repeatedly install and remove SetPoint software (and many other drivers supplied by other hardware manufacturers) under non-US Vista x86/x64 versions, a WMI/OEM driver database corruption may occur.
As a result of this damage, you could have serious problems installing new devices such as a simple USB mouse, a DVD-ROM, a PS/2 keyboard and whatever is normally detected and initialized with standard Windows drivers.
This problem has been classified by Microsoft as KB934637 and there are small fixes for both x86 and x64 versions, but they're not available with WindowsUpdate and will be included in the first Vista Service Pack.
If you're in urgent need to fix this issue, you should contact Microsoft Technical Support (if you purchased a retail/boxed Vista version) or your PC manufacturer (if you have a pre-installed OEM version).
Another workaround is to force Windows Vista rebuilding that database, 'cause it's not a pre-compiled file, but generated during Windows Vista setup process by reading all of the INF and PNF files located \Windows\INF folder of your system hard disk.
At the end of the setup process, the drivers database files are locked to prevent unauthorized access and you can't delete/rename/move them, but OS does its access each time we add or remove new hardware and drivers, and it adds or removes some records and fields.
You might be asking that being a "dynamic" file it's supposed to be erasable, to be fully rebuilt from scratch, huh?
That's right! So here is what you have to do:
(01) insert your Vista setup DVD and boot your PC from that by pressing any key when prompted;
(02) when it ask you for your language, be sure only to choose the one matching your current keyboard layout and click "Next";
(03) Windows is ready to install... but you MUST click "REPAIR YOUR COMPUTER" option, in the lower left corner of the window;
(04) System Recovery will look for installed operating systems: once found, click it and then click "Next";
(05) a quick scan for common problems will start: if something wrong is found you'll be prompted for an automatic system restore, that you shall abort by clicking "Cancel" button.
(06) Now you should see the "System Recovery Options" window: select "Command Prompt" and prepare for a tasty DOS session...
(07) go in your system disk by typing C: (or the letter corresponding to your system disk, followed by a colon);
(08) reach your INF system folder by typing CD \Windows\INF
(09) set a variable to let the file listing being sorted by extension (file type) and then by name, with folders grouped at the top by typing the following command: SET DIRCMD=/p /a /ogen
(10) now, let's get the files list: type DIR
You'll see an enormous amount of INF and PNF files, a bunch of subfolders and a few files having different extension and a really recent date: yeah... you've found them!!
(11) Let's do the hard stuff... type each one of these commands with care and being sure that your command prompt is pointing to \Windows\INF folder:
DEL DRVINDEX.DAT
DEL INFPUB.DAT
DEL INFSTOR.DAT
DEL INFSTRNG.DAT
DEL INFCACHE.*
DEL SETUPAPI.*
All of the above files shouldn't be write-protected nor hidden, so you don't have to see any error following each command.
(12) When finished, type EXIT and the command prompt window will close itself.
(13) Click "RESTART" button and remove Vista Setup DVD from optical unit.
Now, by having completely destroyed the built-in database, Windows will launch its rebuild at the first time you'll plug a new Plug'n'Play peripheral or when you'll start the "Add new hardware" procedure in Control Panel.
Hope this could be helpful for anybody experiencing the same problem.
As a result of this damage, you could have serious problems installing new devices such as a simple USB mouse, a DVD-ROM, a PS/2 keyboard and whatever is normally detected and initialized with standard Windows drivers.
This problem has been classified by Microsoft as KB934637 and there are small fixes for both x86 and x64 versions, but they're not available with WindowsUpdate and will be included in the first Vista Service Pack.
If you're in urgent need to fix this issue, you should contact Microsoft Technical Support (if you purchased a retail/boxed Vista version) or your PC manufacturer (if you have a pre-installed OEM version).
Another workaround is to force Windows Vista rebuilding that database, 'cause it's not a pre-compiled file, but generated during Windows Vista setup process by reading all of the INF and PNF files located \Windows\INF folder of your system hard disk.
At the end of the setup process, the drivers database files are locked to prevent unauthorized access and you can't delete/rename/move them, but OS does its access each time we add or remove new hardware and drivers, and it adds or removes some records and fields.
You might be asking that being a "dynamic" file it's supposed to be erasable, to be fully rebuilt from scratch, huh?
That's right! So here is what you have to do:
(01) insert your Vista setup DVD and boot your PC from that by pressing any key when prompted;
(02) when it ask you for your language, be sure only to choose the one matching your current keyboard layout and click "Next";
(03) Windows is ready to install... but you MUST click "REPAIR YOUR COMPUTER" option, in the lower left corner of the window;
(04) System Recovery will look for installed operating systems: once found, click it and then click "Next";
(05) a quick scan for common problems will start: if something wrong is found you'll be prompted for an automatic system restore, that you shall abort by clicking "Cancel" button.
(06) Now you should see the "System Recovery Options" window: select "Command Prompt" and prepare for a tasty DOS session...
(07) go in your system disk by typing C: (or the letter corresponding to your system disk, followed by a colon);
(08) reach your INF system folder by typing CD \Windows\INF
(09) set a variable to let the file listing being sorted by extension (file type) and then by name, with folders grouped at the top by typing the following command: SET DIRCMD=/p /a /ogen
(10) now, let's get the files list: type DIR
You'll see an enormous amount of INF and PNF files, a bunch of subfolders and a few files having different extension and a really recent date: yeah... you've found them!!
(11) Let's do the hard stuff... type each one of these commands with care and being sure that your command prompt is pointing to \Windows\INF folder:
DEL DRVINDEX.DAT
DEL INFPUB.DAT
DEL INFSTOR.DAT
DEL INFSTRNG.DAT
DEL INFCACHE.*
DEL SETUPAPI.*
All of the above files shouldn't be write-protected nor hidden, so you don't have to see any error following each command.
(12) When finished, type EXIT and the command prompt window will close itself.
(13) Click "RESTART" button and remove Vista Setup DVD from optical unit.
Now, by having completely destroyed the built-in database, Windows will launch its rebuild at the first time you'll plug a new Plug'n'Play peripheral or when you'll start the "Add new hardware" procedure in Control Panel.
Hope this could be helpful for anybody experiencing the same problem.
Message Edited by LanX on 05-01-200707:46 AM
Options
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
0
05-02-2007 12:50 PM
Re: How to recover corrupted Vista driver database
Logi Nu
Posts: 3
Wow, I have been looking for how to do this for ages, but never knew what to search for in google to stop it bringing back loads of useless results. You are an abolsute life saver, this is a massive problem that is really prevelant in vista, as you have to manually point it to so many drivers as they slowly start to appear, and eventually Vista just stops being able to remember where any of it;s drivers are, and you have to keep on telling it to look in the Windows/inf Windows/System32 or just Windows directories every single time something gets plugged in (or every time I boot up and have to re-pair my mx5000 keyboard, but that's another problem).
Thank you so much for this
Options
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
0
07-10-2007 05:02 PM
Re: How to recover corrupted Vista driver database
Logi Browser
Posts: 12
LanX,
Well so far it looks like this fixes all my "Vista should just find and install it" which it never did problems.
Without be melodramatic if this continues to work as the couple of test I have done so far suggest this is a "God Send".
This problem has TOTALLY RUINED MY VISTA EXPERIENCE TO DATE.
LanX, Thank you very much.
Options
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
0
07-10-2007 07:40 PM
Re: How to recover corrupted Vista driver database
Logi Browser
Posts: 12
LanX,
If you go get this program called "Own" it makes your fix a cake walk. It adds own to the right click menu. So you don't have to boot from the install disk you can do it all from inside Vista. Open the inf directory one at a time right click on your listed files, take ownership and delete. Turns the whole task into about a two minute job.
Link to the program "Own":
LanX - Thanks again, you have made my life with Vista improve by 1000% 
Options
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
0
11-23-2007 01:21 PM
Re: How to recover corrupted Vista driver database
Logi Nu
Posts: 1
You really hit the nail on the head. Many thanks. After a week fooling around with Microsoft tech support and trying all kinds of remedies they suggested, I followed your advice and all my USB devices installed with one exception - an Epson scanner. I kept getting the all too familiar error message that Windows could not find the file to install the scanner. After ransacking various news groups I found one that advised copying a file, usbscan.sys, to Windows\inf because that was where Windows was looking for it. The scanner installed instantly. I sent all this information to Microsoft and they apologized and thanked me for the information.
Is it really true that Windows Vista service pack 1 is going to install XP?
Options
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
0
12-23-2007 07:23 PM
Re: How to recover corrupted Vista driver database
Logi Nu
Posts: 2
How would I do this without the Vista DVD. Software preinstalled on my media center by HP.
Options
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
0
02-05-2008 11:17 AM
Re: How to recover corrupted Vista driver database
Logi Nu
Posts: 3
Does anybody know where else I can get the own.zip file that gth was talking about? The link he provided goes to another link that's constantly above it's bandwidth limit.
Options
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
0
02-05-2008 11:21 AM
Re: How to recover corrupted Vista driver database
Logi Browser
Posts: 12
Stand by just a minute let me see if I still have a copy and I will post it so you can get to it.
Options
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
0
02-05-2008 11:28 AM
Re: How to recover corrupted Vista driver database
Logi Browser
Posts: 12
This should do it for you:
Own2.zip
let me know it you have any problems.
The guy that wrote this jumped ship and is now a Linus guy - Ugh!
Options
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
0
02-05-2008 11:35 AM
Re: How to recover corrupted Vista driver database
Logi Nu
Posts: 3
GTH --
I appreciate the help and the quick response. The download is asking for a password though. Is there a public password or do I have to create an account and use my own?
Options
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
0
