MSFN Forum: my drivers Inf files to drivers.cab? - MSFN Forum

Jump to content


  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

my drivers Inf files to drivers.cab? Rate Topic: -----

#1 User is offline   serialzs 

  • Member
  • PipPip
  • Group: Members
  • Posts: 140
  • Joined: 21-December 03

  Posted 21 March 2004 - 10:13 AM

@all

can i do all the files of my drivers inserted to drivers.cab in i386 folder???
instead of $OEM$\$1\Drivers folders :)


-=[serialzs]=-


#2 User is offline   XtremeMaC 

  • MSFN SuperB
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5,070
  • Joined: 13-October 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 21 March 2004 - 12:20 PM

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

#3 User is offline   DirtDevil 

  • Newbie
  • Group: Members
  • Posts: 44
  • Joined: 12-March 04

Posted 21 March 2004 - 05:10 PM

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

#4 User is offline   serialzs 

  • Member
  • PipPip
  • Group: Members
  • Posts: 140
  • Joined: 21-December 03

  Posted 21 March 2004 - 08:26 PM

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?

#5 User is offline   DirtDevil 

  • Newbie
  • Group: Members
  • Posts: 44
  • Joined: 12-March 04

Posted 22 March 2004 - 02:42 AM

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

#6 User is offline   serialzs 

  • Member
  • PipPip
  • Group: Members
  • Posts: 140
  • Joined: 21-December 03

Posted 22 March 2004 - 04:01 AM

@DirtDevil

thanks a lot i will try it! :)


-=[serialzs]=-

#7 User is offline   gmx 

  • Member
  • PipPip
  • Group: Members
  • Posts: 171
  • Joined: 09-November 03

Posted 22 March 2004 - 08:15 AM

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

#8 User is offline   serialzs 

  • Member
  • PipPip
  • Group: Members
  • Posts: 140
  • Joined: 21-December 03

Posted 22 March 2004 - 12:29 PM

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


#9 User is offline   DirtDevil 

  • Newbie
  • Group: Members
  • Posts: 44
  • Joined: 12-March 04

Posted 22 March 2004 - 01:57 PM

Quote

[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:

Quote

[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... :)

#10 User is offline   Darkest Genesis 

  • Newbie
  • Group: Members
  • Posts: 17
  • Joined: 23-February 04

Posted 22 March 2004 - 05:30 PM

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

#11 User is offline   XtremeMaC 

  • MSFN SuperB
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5,070
  • Joined: 13-October 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 22 March 2004 - 06:03 PM

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.

#12 User is offline   serialzs 

  • Member
  • PipPip
  • Group: Members
  • Posts: 140
  • Joined: 21-December 03

Posted 23 March 2004 - 07:23 AM

Quote

[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]=-

#13 User is offline   DirtDevil 

  • Newbie
  • Group: Members
  • Posts: 44
  • Joined: 12-March 04

Posted 23 March 2004 - 07:41 AM

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.

#14 User is offline   serialzs 

  • Member
  • PipPip
  • Group: Members
  • Posts: 140
  • Joined: 21-December 03

Posted 23 March 2004 - 08:25 AM

Quote

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]=-

#15 User is offline   XtremeMaC 

  • MSFN SuperB
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5,070
  • Joined: 13-October 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 23 March 2004 - 09:16 AM

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

#16 User is offline   gmx 

  • Member
  • PipPip
  • Group: Members
  • Posts: 171
  • Joined: 09-November 03

Posted 23 March 2004 - 09:44 AM

XtremeMaC, on Mar 23 2004, 09:16 AM, said:

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

#17 User is offline   XtremeMaC 

  • MSFN SuperB
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5,070
  • Joined: 13-October 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 23 March 2004 - 10:03 AM

jdeboeck I believe said:

@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

This post has been edited by XtremeMaC: 23 March 2004 - 10:07 AM


#18 User is offline   gmx 

  • Member
  • PipPip
  • Group: Members
  • Posts: 171
  • Joined: 09-November 03

Posted 23 March 2004 - 10:31 AM

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

#19 User is offline   XtremeMaC 

  • MSFN SuperB
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5,070
  • Joined: 13-October 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 23 March 2004 - 10:36 AM

dude that's not hard.
i could do it now but i don't have the time.

will do when i find the time

This post has been edited by XtremeMaC: 25 March 2004 - 12:38 PM


#20 User is offline   serialzs 

  • Member
  • PipPip
  • Group: Members
  • Posts: 140
  • Joined: 21-December 03

  Posted 23 March 2004 - 10:40 AM

: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]=-

Share this topic:


  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy