Apr 13 2005, 07:26 AM Post
#1 | |
| Junior ![]() Group: Members Posts: 65 Joined: 22-July 04 Member No.: 25116 | Normally there is one way to integrate drivers in Windows 2k/xp/2k3. Specify oempnpdriverspath in winnt.sif / unattend.txt / ristndrd.sif / sysprep.inf or patch the resulting DevicePath Registry Value directly using SetDevicePath.exe by Pyron. The problem is there is a length limit of 4096 characters. I developed two little scripts which will solve the problem of driver integration in a different way (exception: disk drivers). Script 1 'drvls.cmd' will scan a subdirectory structure where it sits at the very top for INF-files and call Script 2 'drvcp.cmd' which will create a temporary INF-file in the subdirectory and for the INF-file passed by 'drvls.cmd'. It will then use the INF command 'CopyINF' to integrate the INF-file in Windows. CopyINF - creates oem<sequencenumber>.inf in %WINDIR%\inf --> this is an exact copy of the INF-file to be integrated - creates oem<sequencenumber>.pnf in %WINDIR%\inf --> this is a compiled INF-file that contains device-ID(s) and (most important) the full path to the original driver location (that was passed to 'drvcp.cmd' by 'drvls.cmd'). - integrates the signature .cat file (if it exists) in the catalog-DB Finally it will delete the temporary INF-file. As a result Windows can successfully install any device driver in the subdirectory structure with the normal PnP mechanism. The subirectory names can be readable and contain Spaces etc. since there is no limit resulting from a Registry Value Length etc. So there are 5 files needed: - drvls.cmd - drvcp.cmd - header.txt (header for temporary INF-file) - footer.txt (footer for temporary INF-file, needed for W2K only) - cocpyinf.dll (CoInstaller DLL, needed for W2K only) Now I try to post these files to this forum as a ZIP Any suggestions? EDIT: 19.4.2005 20:20 -> Script solution REMOVED. Please use SetupCopyOEMInf.exe from Pyron based on his SetDevicePath.exe and my scripts. Downloadable in this thread. Tested successfully on 2k, xp and 2003. |
| | |
![]() |
Oct 2 2005, 12:14 PM Post
#2 | |
| aka Wim Leers Group: Patrons Posts: 2214 Joined: 29-October 03 From: Hasselt, Belgium Member No.: 8748 OS: none | |
| | |
schalti Unlimited number of drivers + keeping the drivers. Apr 13 2005, 07:26 AM
Bâshrat the Sneaky Amazing
But can it be used DURING setup? I don... Apr 13 2005, 08:55 AM
schalti QUOTE (Bâshrat the Sneaky @ Apr 13 2005, 08:5... Apr 13 2005, 09:02 AM
Pyron Hi there, took me quite some time to recover my fo... Apr 13 2005, 12:47 PM
schalti QUOTE (Pyron @ Apr 13 2005, 12:47 PM)Hi there... Apr 13 2005, 02:35 PM
Bâshrat the Sneaky In V5.04.10 I'll put a beta implementation of ... Apr 13 2005, 02:49 PM
BAM Well, before i dive in to some advanced testing, n... Apr 13 2005, 02:55 PM
schalti QUOTE (BAM @ Apr 13 2005, 02:55 PM)Well, befo... Apr 14 2005, 02:17 AM
Bâshrat the Sneaky How do you get all those printer drivers installed... Apr 14 2005, 05:08 AM
schalti QUOTE (Bâshrat the Sneaky @ Apr 14 2005, 05:0... Apr 14 2005, 06:36 AM
Bâshrat the Sneaky Oh, of course, didn't think of that!
Woul... Apr 14 2005, 10:22 AM
schalti QUOTE (Bâshrat the Sneaky @ Apr 14 2005, 10:2... Apr 16 2005, 09:47 AM
Bâshrat the Sneaky I changed the topic title for a better description... Apr 17 2005, 12:54 PM
erik_demon QUOTE I added the option to let Windows keep the d... Apr 17 2005, 03:20 PM
S0mE0nesMiNd1 I gotta say, theres quite an ammount of progress i... Apr 18 2005, 03:05 PM
RogueSpear Ok, so I've been trying to put together everyt... Apr 19 2005, 08:30 AM
schalti QUOTE (RogueSpear @ Apr 19 2005, 08:30 AM)Ok,... Apr 19 2005, 09:19 AM
RogueSpear See one of the things that is important to me is b... Apr 19 2005, 09:28 AM
schalti QUOTE (RogueSpear @ Apr 19 2005, 09:28 AM)See... Apr 19 2005, 11:40 AM
Astalavista And there was light! Apr 19 2005, 09:35 AM
Bilou_Gateux @schalti
just have a try with yours scripts on a ... Apr 19 2005, 09:51 AM
schalti QUOTE (Bilou_Gateux @ Apr 19 2005, 09:51 AM)@... Apr 19 2005, 11:34 AM
Bilou_Gateux This method is awesome.
"One small step for m... Apr 20 2005, 01:48 AM
Bâshrat the Sneaky @Bilou_Gateaux: I agree with your last sentence Apr 20 2005, 06:34 AM
erik_demon Today I finally had the time to test this new meth... Apr 21 2005, 03:57 PM
schalti QUOTE (erik_demon @ Apr 21 2005, 03:57 PM)Tod... Apr 21 2005, 04:36 PM
RogueSpear It should work from DetachedProgram. Apr 21 2005, 07:51 PM
sixpack works great here
i have questions tho..
can i m... Apr 22 2005, 02:30 AM
erik_demon QUOTE can i move the driver folder D to windows fo... Apr 22 2005, 03:47 AM
sixpack i use Method 1
and make a sfx file and unpacking a... Apr 22 2005, 03:55 AM
erik_demon I that case:
let your sfx file extract the files ... Apr 22 2005, 04:08 AM
X-Savior Hey All!
Ok, Just finished catching up.
I... Apr 22 2005, 05:25 PM
RogueSpear X-savior, actually I'm wondering the same thin... Apr 22 2005, 07:25 PM
erik_demon @X-Savior
I tested this method myself and I now k... Apr 23 2005, 05:30 AM
schalti QUOTE (erik_demon @ Apr 23 2005, 05:30 AM)@sc... Apr 23 2005, 01:32 PM
Bilou_Gateux About the size of the drivers binaries, i recommen... Apr 23 2005, 02:28 PM
Bâshrat the Sneaky @Bilou Gateau: separate files compressing gives a ... Apr 23 2005, 02:44 PM
schalti QUOTE (Bâshrat the Sneaky @ Apr 23 2005, 02:4... Apr 23 2005, 05:42 PM
erik_demon Hi
I did another test today and this time my pr... Apr 24 2005, 07:22 AM
RogueSpear The problem is that Windows setup hasn't run A... Apr 24 2005, 07:43 AM
erik_demon Okay, thanks
I will give it a try Apr 24 2005, 07:48 AM
Bâshrat the Sneaky @RogueSpear: thanks, then I'll do that. Apr 24 2005, 08:12 AM
erik_demon I just tried it, and it didn't work .
This i... Apr 24 2005, 08:34 AM
RogueSpear First, I've never used a directory as my tag f... Apr 24 2005, 08:48 AM
erik_demon @RogueSpear
Thanks for your reply
QUOTE First, I... Apr 24 2005, 09:02 AM
Bâshrat the Sneaky DOH You guys wanted to 'hide' the DriverPa... Apr 24 2005, 01:34 PM
billgbuds The gui run once section is missing the command to... Apr 24 2005, 01:38 PM
Bâshrat the Sneaky I know, I'm working on a new version. Apr 25 2005, 11:08 AM
X-Savior Hey,
Well, I can see there are both Pro's and... Apr 29 2005, 03:46 PM
Bâshrat the Sneaky It seem there's a problem with unsigned driver... Apr 30 2005, 01:47 AM
kingofthing Windows XP Service Pack2 (Manual Integration)
+ Ry... May 2 2005, 01:30 PM
X-Savior Hey There,
I would do the Traditional Mass Storag... May 2 2005, 07:06 PM
erik_demon @X-Savior
Yes, the way it is used now, and the wa... May 3 2005, 06:23 AM
Bâshrat the Sneaky @X-Savior: eh... the SATARAID drivers just work fi... May 3 2005, 11:27 AM
X-Savior @Bashrat
Interesting. Wasn't sure if it was o... May 4 2005, 04:58 PM
Bâshrat the Sneaky It seems several users of my DriverPacks have repo... May 5 2005, 02:26 AM
edmoncu QUOTE (Bâshrat the Sneaky @ May 5 2005, 02:26... May 17 2005, 02:24 AM
hp38guser This method works
Here's the AutoIt script... May 8 2005, 01:59 PM
crazyboot Hello everyone,
QUOTE (hp38guser @ May 8 200... May 10 2005, 03:29 PM
Bâshrat the Sneaky Interesting, didn't think that it would work a... May 8 2005, 02:13 PM
hp38guser Currently I'm in testing phase. Approximately ... May 8 2005, 03:02 PM
mark49 M3 ,with high prior ,maybe can extract all driver... May 9 2005, 11:11 AM
m4slayer Hello Bashrat!
I tested M3 in combination wit... May 9 2005, 02:06 PM
Bâshrat the Sneaky Well, in that cse, could you please verify the .ex... May 10 2005, 05:02 AM
Bilou_Gateux RogueSpear
QUOTE Drivers for things like monitors ... May 11 2005, 02:50 AM
hp38guser EDIT Code seems to work. However please use CODEex... May 11 2005, 03:57 PM
Bilou_Gateux @hp38guser
Thanks for your answer. A google search... May 13 2005, 07:04 AM
Bâshrat the Sneaky Eh... huh?
How come WatchDriverSigningPolicy.e... May 18 2005, 01:58 PM
erik_demon I don't have this problem. For me it works per... May 18 2005, 04:57 PM
edmoncu hi guys,
from the screenshot attached at my prev... May 19 2005, 10:22 AM
erik_demon QUOTE but for almost every driver that SetupCopyOE... May 19 2005, 10:49 AM
edmoncu hmm... i believe it could be one of the registry s... May 21 2005, 11:38 AM
Cr4z33 QUOTE (schalti @ Apr 13 2005, 02:26 PM)Please... May 31 2005, 05:00 AM
Styxke I too have this problem ... driver signing is popp... May 31 2005, 10:00 AM
Bâshrat the Sneaky Welcome to MSFN, Styxke (where are you from? - I ... May 31 2005, 11:56 AM
Cr4z33 QUOTE (Bâshrat the Sneaky @ May 31 2005, 06:5... May 31 2005, 12:18 PM
Bâshrat the Sneaky QUOTE (Cr4z33 @ May 31 2005, 08:18 PM)QUOTE (... May 31 2005, 12:50 PM
Cr4z33 QUOTE (Bâshrat the Sneaky @ May 31 2005, 07:5... Jun 1 2005, 12:06 PM
schalti QUOTE (Cr4z33 @ Jun 1 2005, 12:06 PM)QUOTE (B... Jun 1 2005, 12:41 PM
Styxke QUOTE (Bâshrat the Sneaky @ May 31 2005, 06:5... Jun 1 2005, 12:24 AM
Scrapple Hi,
First of all: This forum is great! Lot... Jul 16 2005, 05:01 AM
schalti QUOTE (Scrapple @ Jul 16 2005, 05:01 AM)@Scha... Jul 18 2005, 08:44 AM
hp38guser QUOTE (Scrapple @ Jul 16 2005, 12:01 PM)P.S. ... Jul 21 2005, 04:03 AM
Scrapple QUOTE (hp38guser @ Jul 21 2005, 12:03 PM)Why ... Jul 21 2005, 10:36 AM
a06lp Ok, I don't fully understand this tool, but he... Jul 20 2005, 09:19 PM
Bfunny27 Thanks everyone these tools are really helpful... Jul 21 2005, 11:07 AM
JuMz Could someone who is using Method 2, pyron's m... Jul 28 2005, 09:57 AM
JuMz anyone? Aug 1 2005, 06:55 PM
osborned_rcc Is anyone ever going to write a full guide on how ... Aug 19 2005, 11:29 AM
a06lp QUOTE (osborned_rcc @ Aug 19 2005, 01:29 PM)I... Aug 28 2005, 06:10 PM
Oleg_II Sorry, if it was answered before but I can't f... Aug 28 2005, 04:01 AM
Xavierxray And this can be used to install missing NIC driver... Aug 30 2005, 04:32 AM
Bilou_Gateux @Xavierxray
No.
@all
Try Drivers From CD (AutoIt ... Sep 1 2005, 07:30 AM
straycat19 I made an xp install cd using nlite, ryanvm cab an... Sep 21 2005, 02:30 PM![]() ![]() |
| Lo-Fi Version | Time is now: 22nd November 2009 - 04:58 PM |