Since this topic is dealing with how to add drivers to win7 i will post my question here:
I want to add Driverpacks to my current installed OS (Windows 7) but i don't want them to be installed in the system so i just copied them to c drive and added their path under "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DevicePath".
Now when i used to do this with windows xp the os would cache the HWID's into infcache.1 file in each folder which will speed up search process for next times, but now windows 7 doesn't cache any HWID from any location other than those defined in oemxxx.inf files inside windows inf folder and create one cache file for those under system32\driverstore folder.
I used pnputil but this seems to install the drivers and expand the compressed ones which is not what i want.
So is there any way to use the drivers path and make the os cache the HWID's from the inf files to speed up search process?

Us2002 wrote:

90% - all working, when I use recovery to other hardware by SnapDeploy+UD or by ATIES+UR.

just i wonder, what is the problem with the 10% that fail.
is it hal issue or mass storage ???

JakeLD wrote:

The only difference I could think is that some drivers like jmicron and nvidia add registry keys other than the one you mentionned.

HKR, Parameters\PnpInterface, 5,                 0x00010001, 0x00000001

This one in particular if missing could cause BSOD specially with nVidia.

OfflineSysprep took care of this issue, so I would recommend using it instead of injecting all storage drivers into your image, you can only inject the one detected in your doing that you prevent driver from conflicting with one and other.

if these values are under HKLM\system\CurrentControlSet\services then its been taken care of.
i injected the services that their names are locate under [sysprepcleanup] of sysprep inf file, in addition to the HKLM\system\CurrentControlSet\control\CriticalDeviceDatabase.
the registry keys for services that i injected are these
if there are other registry locations that contains critical keys that need to be injected that would be helpful.

hello everyone
i see eveyone went harsh on me because of the illegal issues.
read the first sentence i wrote

I'm trying to make a universal image using sysprep only

so if im looking for an illegal software i would go for symantec restore anyware or acronis  universal restore. and save my self all the trouble.
i will clear things up.
-first i didn't know that using loghorn ntldr is an illegal issue, actually thanks for telling this to me, if that is the casee then i wont use it.
-second i don't use a pirated softwares nor a pirated os, the chinese ghost image is only for checking and testing only, with this ghost image i can check the drivers installed and the registry keys and copy them to another system ( even without installing the ghost itself ), so i don't think browsing an os files without installing it is an illegal issue.(if im wrong please say so).
my question was if i copied the registry keys( under CriticalDeviceDatabase and the needed services ) and the drivers from drivers folder to another system, will this be any difference than the already installed system on the ghost and will this cause any issue.
if this issue is discussed somewhere it would be good to refere me, i searched but i didn't find what is related to my issue.
hope it is clear now
thanks everyone

I'm trying to make a universal image using sysprep only that will work on every machine, but the only problem i face only come from massStorage drivers with the stop code 7B.
here is my questions
-if i installed a huge amount of massstorage drivers, could there be any conflict that will cause the 7B stop error, or is it only happend because of missing driver?
-will there be any difference in installing massstorage drivers between installing them directly using sysprep or inject registry keys to (CriticalDeviceDatabase and services) then copy the sys files.
i ask about this because i found some chinese ghost images that are proved to work without any fail.(note im not chinese and i dont understand any chinese so even if its working its of no use for me but the drivers it contains can be useful).
-after a lot of testing i ended up having a huge list of massstorage drivers about 330 sys file and 2300 CriticalDeviceDatabase registry entry.
here is the list i have
i think there are a lot of entries that will never be used, can someone tell if there are any duplication that will cause any error. or any other mistake, up untill now i have two machines failed to start even their drivers are exist.
any advice is welcome