Jump to content

my drivers Inf files to drivers.cab?


serialzs

Recommended Posts

yea forgot to mention.

that nv4disp.inf adds lots of stuff to the registry.

i haven't tried to just use the inf but u've to start installing the .inf

1 thing u could do (i think, haven't tried it)

windows setup already comes with an old version of nv4disp.inf, so it doesn't have the control panel stuff and lots of other files.

so change your nv4 inf in the i386 folder with the new driver. and i think u should be okay with it...

after adding the inf it'll look for the files mentioned in the inf appropiate for your hardware. so put those files in i386 folder or drivers.cab...

i was thinkin on the same lines.. now jbdeock's batches [to remove drivers] may come in handy here.. they have a list of files.. say for removing nvidia drivers.

all we have to do is see in jbdeock's batches nvidia files are either replace them with newer ones if the file is present if not add them to driver.cab and make an entry in txtsetup.sif...

correct me if i'm wrong

Link to comment
Share on other sites


@echo off

if not exist i386\graphics mkdir i386\graphics

if not exist i386\graphics\nvidia mkdir i386\graphics\nvidia

echo.

echo moving files

echo.

move i386\nv3.in_ i386\graphics\nvidia

move i386\nv4.in_ i386\graphics\nvidia

move i386\nv4_disp.in_ i386\graphics\nvidia

move i386\nvct.in_ i386\graphics\nvidia

move i386\nvdm.in_ i386\graphics\nvidia

move i386\nvts.in_ i386\graphics\nvidia

move i386\driver\nv3.dll i386\graphics\nvidia

move i386\driver\nv3.sys i386\graphics\nvidia

move i386\driver\nv4.dll i386\graphics\nvidia

move i386\driver\nv4.sys i386\graphics\nvidia

move i386\sp1\nv4_disp.dll i386\graphics\nvidia

move i386\sp1\nv4_mini.sys i386\graphics\nvidia

echo.

echo creating log

echo.

echo nv3.inf>> temp.log

echo nv4.inf>> temp.log

echo nv4_disp.inf>> temp.log

echo nvct.inf>> temp.log

echo nvdm.inf>> temp.log

echo nvts.inf>> temp.log

echo nv3.dll>> temp.log

echo nv3.sys>> temp.log

echo nv4.dll>> temp.log

echo nv4.sys>> temp.log

echo nv4_disp.dll>> temp.log

echo nv4_mini.sys>> temp.log

echo.

echo Updating setup files

echo.

findstr /v /i /g:temp.log i386\txtsetup.sif > txtsetup.sif

findstr /v /i /g:temp.log i386\dosnet.inf > dosnet.inf

findstr /v /i /g:temp.log i386\drvindex.inf > drvindex.inf

move txtsetup.sif i386\txtsetup.sif

move dosnet.inf i386\dosnet.inf

move drvindex.inf i386\drvindex.inf

del temp.log

copy and save this to anything u like :)

u'll have to expand and update the sp1.cab and drivers.cab

or alternatively i'm sure u can swap them or tell dosnet.inf and txtsetup.inf to use alternate location for them..

edit: wait stop don't forget to add the inf to txtsetup.inf drvindex.inf and dosnet.inf

or better yet don't remove it from them just put the new inf in the folder. or something...

good luck

Edited by XtremeMaC
Link to comment
Share on other sites

:D you can delete the NVIDIA Drivers thats good news :rolleyes::

i will try that later...

i made it and its working great!!!

add some line in txtsetup.inf and winnt.sif

use MAKECAB command to compress the drivers.

Question about DRIVERS.CAB how it extracting and installing¿¿¿ :/

TXTSETUP.SIF

[WinntDirectories]
1  = "\"
2  = system32
3  = system32\config
4  = system32\drivers
5  = system
7  = system32\ras
9  = system32\spool
10 = system32\spool\drivers
11 = system32\spool\drivers\w32x86\3

can i insert a new NUMBER in TXTSETUP.SIF¿¿¿ :)

example:

999 = "%systemdrive%\Drivers"

-=[serialzs]=-

Link to comment
Share on other sites

@all

for those who want to compressed their driver and install it unattended...

(alternative method for $OEM$\$1\Drivers folder)

1. make a *.cab files:

type > iexpress in RUN

select > Create compressed files only

add > Add all your Driver Files

browse > where you want to put your *.cab files

select > Save SED file

COPY the *.CAB file to i386 folder

now You have a compressed Driver Files.

Example i have mydriver.cab

2. inside i386 folder edit DRVINDEX.INF(dont delete anything)

add the bold text:

[Version]
signature="$Windows NT$"
CabFiles=SP1,driver,[B]mydrivers[/B]

add all the files in the mydriver.cab like this:

*to make it easy open SED file with Notepad then COPY all the files you ADDED

Example:

FILE0="sm56hlpr.exe"
FILE1="sm56co.dll"
FILE2="domestic.chm"
FILE3="sm56.reg"
FILE4="IntelH51.cat"
FILE5="sm56nt5.cat"
FILE6="IntelH51.inf"
FILE7="Nehcd.inf"
FILE8="smserial.inf"
FILE9="IntelH51.sys"
FILE10="nehcd.sys"
FILE11="nusb2hub.sys"
FILE12="nusbd.sys"
FILE13="SmSerial.sys"

if you paste it in DRVINDEX.INF delete the FILE##="" and it should be like this:

[mydrivers]
sm56hlpr.exe
sm56co.dll
domestic.chm
sm56.reg
IntelH51.cat
sm56nt5.cat
IntelH51.inf
Nehcd.inf
smserial.inf
IntelH51.sys
nehcd.sys
nusb2hub.sys
nusbd.sys
SmSerial.sys

add the bold text

[Cabs]

driver=driver.cab

SP1=SP1.cab

mydrivers=mydrive.cab

3. edit TXTSETUP.SIF

[SourceDisksFiles]
; Drivers for my PC
mydrive.cab = 100
sm56hlpr.exe = 100,,,,,,,45,0,0
sm56co.dll = 100,,,,,,,45,0,0
domestic.chm = 100,,,,,,,45,0,0
sm56.reg = 100,,,,,,,45,0,0
IntelH51.cat = 100,,,,,,,45,0,0
sm56nt5.cat = 100,,,,,,,45,0,0
IntelH51.inf = 100,,,,,,,45,0,0
Nehcd.inf = 100,,,,,,,45,0,0
smserial.inf = 100,,,,,,,45,0,0
IntelH51.sys = 100,,,,,,,45,0,0
nehcd.sys = 100,,,,,,,45,0,0
nusb2hub.sys = 100,,,,,,,45,0,0
nusbd.sys = 100,,,,,,,45,0,0
SmSerial.sys = 100,,,,,,,45,0,0

45 means where you want to extract your files...

You can change 45 = windows\temp folder

4. edit WINNT.SIF

[Unattended]
OemPnPDriversPath="WINDOWS\TEMP"

and thats all it works great to me hope to others too...

-=[serialzs]=-

Link to comment
Share on other sites

@serialzs

First of all, thank you.

Secondly I have couple of question about details.

You said:

make cab file using iexpress. Right. What should I do in case of driver setup comtains folders (f.i. ATI or NVIDIA vireoadapters drivers)? iexpress doesn't allow to add folders into package. Absence of folders may cause error during installation. What can you offer?

You said:

45 means to extract files and mentioned windows\temp folder. Does it exactly mean that files will be extracted in %systemroot%\temp or how can I specify extraction plece directly (sorry for stuppid question but I need help on this).

Thank you in advance.

Link to comment
Share on other sites

Sorry, I posted stuppid question (about "45"). Aswer is inside of txtsetup.sif.

But another stuppid question was occured. What does it meam - 100 in string

NVIDIA.CAB = 100?

I can't understand this string and W2k can't understand it as well :-((

Please explain.

Link to comment
Share on other sites

@alexey

1st of all im sorrie im busy this last few days...

@ your first post:

examples: :)

inside c:\nvidia

drive.exe

must have a *.cab

inside c:\nvidia\files

drive.sys

drive.inf

must have another *.cab

nvdia.cab ---------> files in c:\nvidia compressed

nvfiles.CAB ---------> files in c:\nvidia\files compressed

you have to make a new *.cab for the folders then add command to your

TXTSETUP.SIF

[WinntDirectories]

45 = Temp -------> is for %systemroot%\TEMP

add this:

999 = "temp\files" -------> is for %systemroot%\TEMP\FILES

note: always remember dont overwrite the other numbers

i think you can use Nos. 200 - 999 for assigning where to extract.

[sourceDisksFiles]

; Drivers for my PC

nvidia.cab = 100

drive.exe = 100,,,,,,,45,0,0

nvfile.cab = 100

drive.sys = 100,,,,,,,999,0,0

you must organize your files to extract without a problem

@ 2nd post

NVIDIA.CAB = 100

100 -->is the folder location in CD, 100 means i386\ folder

i dont test it in w2k, WinXP only but you can try it and you can add a post what you did to install...

-=[serialzs]=-

Link to comment
Share on other sites

I did exactly the same as you adviced but it doesn't work!

Maybe I'm stupid but I got the message during process the txtsetup.sif by install script: - error in 3rd string in SIF file - zero equal or wrong argument in 3rd string (I inserted driver's strings at the beginning of [sourceDisksFiles]). I tried to add direct direction what the .CAB is in [sourceDisksNames.x86] - I got error again, than I tried to copy .CAB file to hard disk via dosnet.inf - I got other error and I tired to repeat it.

I started from simple package (folders didn't included) and I was fail. But I believe if you did it, I should make it as well. I suspect user error. Do you want to see changed files for having look where error is? I know it is not simple and unpleasant to search for error made by someone but I can't find it by myself...

Sorry that I'm disturbing you...

:)

Link to comment
Share on other sites

@alexey

i want to help you out!!! :rolleyes:

PLEASE post here your TXTSETUP.SIF and DRVINDEX.INF

and the names of drivers that you want to extract...

also include the name of CAB files...

what OS are you using???

i want to know the bugs in here too... :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...