• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
Sign in to follow this  
Followers 0
serialzs

my drivers Inf files to drivers.cab?

51 posts in this topic

@all

can i do all the files of my drivers inserted to drivers.cab in i386 folder???

instead of $OEM$\$1\Drivers folders :)

-=[serialzs]=-

0

Share this post


Link to post
Share on other sites

I'm sure u can

but i think u'd have to add those into dosnet txtsetup or even maybe to something else..

0

Share this post


Link to post
Share on other sites

You don't have to put it into the drivers.cab. Compress your files using makecab via cmd and copy your files into the I386 directory. Then you have to edit dosnet.inf and txtsetup.sif.

dosnet.inf:

[Files]

d1,YourFile

d1,AnotherFile

d1,FilesETC

txtsetup.sif:

[sourceDisksFiles]

YourFile = 1,,,,,,,2,0,0

AnotherFile = 1,,,,,,,2,0,0

FilesETC = 1,,,,,,,2,0,0

Windows will now install these files on your hd. :)

0

Share this post


Link to post
Share on other sites

can you explain it more clearly... :)

example i have this files: :rolleyes:

1.cab as all of my drivers

1.inf as the installer of the drivers

1.sys as the drivers

how can i edit the DOSNET.inf & TXTSETUP.sif?

0

Share this post


Link to post
Share on other sites

Start to compress these files using makecab. Example:

makecab C:\path\to\files\1.cab

makecab C:\path\to\files\1.inf

makecab C:\path\to\files\1.sys

You should now have 3 new files:

1.ca_

1.in_

1.sy_

Copy these 3 files to your I386 directory.

Now look for dosnet.inf in the I386 directory and open it with notepad. Add the files to [Files]:

d1,1.cab

d1,1.inf

d1,1.sys

Now look for txtsetup.sif and open it with notepad. Add the files to [sourceDisksFiles].

1.cab = 1,,,,,,,2,0,0

1.inf = 1,,,,,,,2,0,0

1.sys = 1,,,,,,,2,0,0

0

Share this post


Link to post
Share on other sites

can we update files in driver.cab like update nvidia driver from ver:28.xx (i think) to newest one... using this method.. and one other thing if we use gosh's reduced source method txtsetup.sif is the only file we have to edit isn't it? :)

i'm sorry if its been discussed before

0

Share this post


Link to post
Share on other sites

i tried it for ten time but it won't work :)

here my files:

edited TXTSETUP.SIF

[SourceDisksFiles]
; Drivers for my PC
DRIVERS\sm56hlpr.exe = 1,,,,,,,2,0,0
DRIVERS\sm56co.dll = 1,,,,,,,2,0,0
DRIVERS\domestic.chm = 1,,,,,,,2,0,0
DRIVERS\sm56.reg = 1,,,,,,,2,0,0
DRIVERS\IntelH51.cat = 1,,,,,,,2,0,0
DRIVERS\sm56nt5.cat = 1,,,,,,,2,0,0
DRIVERS\IntelH51.inf = 1,,,,,,,2,0,0
DRIVERS\Nehcd.inf = 1,,,,,,,2,0,0
DRIVERS\smserial.inf = 1,,,,,,,2,0,0
DRIVERS\IntelH51.sys = 1,,,,,,,2,0,0
DRIVERS\nehcd.sys = 1,,,,,,,2,0,0
DRIVERS\nusb2hub.sys = 1,,,,,,,2,0,0
DRIVERS\nusbd.sys = 1,,,,,,,2,0,0
DRIVERS\SmSerial.sys = 1,,,,,,,2,0,0

0

Share this post


Link to post
Share on other sites
[sourceDisksFiles]; Drivers for my PC

DRIVERS\sm56hlpr.exe = 1,,,,,,,2,0,0

DRIVERS\sm56co.dll = 1,,,,,,,2,0,0

DRIVERS\domestic.chm = 1,,,,,,,2,0,0

DRIVERS\sm56.reg = 1,,,,,,,2,0,0

DRIVERS\IntelH51.cat = 1,,,,,,,2,0,0

DRIVERS\sm56nt5.cat = 1,,,,,,,2,0,0

DRIVERS\IntelH51.inf = 1,,,,,,,2,0,0

DRIVERS\Nehcd.inf = 1,,,,,,,2,0,0

DRIVERS\smserial.inf = 1,,,,,,,2,0,0

DRIVERS\IntelH51.sys = 1,,,,,,,2,0,0

DRIVERS\nehcd.sys = 1,,,,,,,2,0,0

DRIVERS\nusb2hub.sys = 1,,,,,,,2,0,0

DRIVERS\nusbd.sys = 1,,,,,,,2,0,0

DRIVERS\SmSerial.sys = 1,,,,,,,2,0,0

Yep, uhm that's wrong... It has to be like this:

[sourceDisksFiles]; Drivers for my PC

sm56hlpr.exe = 1,,,,,,,2,0,0

sm56co.dll = 1,,,,,,,2,0,0

domestic.chm = 1,,,,,,,2,0,0

sm56.reg = 1,,,,,,,2,0,0

IntelH51.cat = 1,,,,,,,2,0,0

sm56nt5.cat = 1,,,,,,,2,0,0

IntelH51.inf = 1,,,,,,,2,0,0

Nehcd.inf = 1,,,,,,,2,0,0

smserial.inf = 1,,,,,,,2,0,0

IntelH51.sys = 1,,,,,,,2,0,0

nehcd.sys = 1,,,,,,,2,0,0

nusb2hub.sys = 1,,,,,,,2,0,0

nusbd.sys = 1,,,,,,,2,0,0

SmSerial.sys = 1,,,,,,,2,0,0

using 1,,,,,,,2,0,0 means your drivers get installed to your System32 directory. If you want them to be installed into the DRIVERS directory use = 1,,,,,,,4,0,0 instead. But the System32 directory is the right place to get them copied to... :)

0

Share this post


Link to post
Share on other sites

Well I read over this, and I understand it all, but one question. What file types/files are needed to do this? For instance, I want to integrate nVidias display drives. There is a buttload of stuff I know wont been needed. But what will? Just dll, sys, inf, cat files? Hope somebody knows what I mean. :)

0

Share this post


Link to post
Share on other sites

why don't u just put them all?

u can remove *.bmp *.txt *.iss *.inx *.ini *.bin

setup.exe *.hlp if u don't want them

ikernel

data1.hdr

i'm not sure what's in data1.cab & data2.cab they're probably setup needed files.

also i think it would be best if u edited that post with txtsetup.inf

its quite long and the portion after your files are unneccessary.

0

Share this post


Link to post
Share on other sites
[sourceDisksFiles]; Drivers for my PC

sm56hlpr.exe = 1,,,,,,,2,0,0

sm56co.dll = 1,,,,,,,2,0,0

domestic.chm = 1,,,,,,,2,0,0

sm56.reg = 1,,,,,,,2,0,0

IntelH51.cat = 1,,,,,,,2,0,0

sm56nt5.cat = 1,,,,,,,2,0,0

IntelH51.inf = 1,,,,,,,2,0,0

Nehcd.inf = 1,,,,,,,2,0,0

smserial.inf = 1,,,,,,,2,0,0

IntelH51.sys = 1,,,,,,,2,0,0

nehcd.sys = 1,,,,,,,2,0,0

nusb2hub.sys = 1,,,,,,,2,0,0

nusbd.sys = 1,,,,,,,2,0,0

SmSerial.sys = 1,,,,,,,2,0,0

i already did it!, in my ten times of trying but no luck :rolleyes:

i know all the files of my drivers go to SYSTEM32 folder

but how it SETUP unattendedly if it just do EXTRACT to Folder command :/

or i have to edit my WINNT.SIF to unattended install it¿¿¿

is there easiest method to use???

did you use this method too? :)

-=[serialzs]=-

0

Share this post


Link to post
Share on other sites

So, you want to install your drivers, huh?

Ok! It's getting a little difficult now. You first have to find out wich of your INF-Files will start the installation of your hardware (modem). Go to: Open the hardware dialog and start to install the drivers manually. Tell Windows to select the folder with the *.inf by yourself. Hopefully the hardware setup will select the right inf itself. Remember this inf file.

Open this inf file with notepad. How to proceed depends on what is stored in this file. Show me the whole content of this file and I think about how to execute the installation.

0

Share this post


Link to post
Share on other sites
So, you want to install your drivers, huh?

YES! :rolleyes:

how can i use my devices if its not installed :)

the $OEM$\$1\Drivers folder works great but i want my

drivers to be compressed...

if there is a method that can extract the *.cab files much great.

like DRIVERS.CAB it extracted thats why the plug-n-play drivers

and other knowned devices installed and that is my plan to do with

my drivers...

-=[serialzs]=-

0

Share this post


Link to post
Share on other sites

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...

0

Share this post


Link to post
Share on other sites
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

0

Share this post


Link to post
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
0

Share this post


Link to post
Share on other sites

now all we need someone *hint* jdeboeck :) to comeup with batches to automate update drivers :rolleyes:

0

Share this post


Link to post
Share on other sites

dude that's not hard.

i could do it now but i don't have the time.

will do when i find the time

Edited by XtremeMaC
0

Share this post


Link to post
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]=-

0

Share this post


Link to post
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]=-

0

Share this post


Link to post
Share on other sites

thanx serialz for the tip.... i'd rather remove files from driver.cab save space...

0

Share this post


Link to post
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.

0

Share this post


Link to post
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.

0

Share this post


Link to post
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
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.