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

#21 User is offline   gmx 

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

Posted 25 March 2004 - 07:03 AM

*bump*


#22 User is offline   serialzs 

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

  Posted 25 March 2004 - 10:31 AM

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

#23 User is offline   gmx 

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

Posted 26 March 2004 - 07:58 AM

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

#24 User is offline   Alexey 

  • Newbie
  • Group: Members
  • Posts: 19
  • Joined: 19-March 04

Posted 29 March 2004 - 09:16 AM

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

#25 User is offline   Alexey 

  • Newbie
  • Group: Members
  • Posts: 19
  • Joined: 19-March 04

Posted 29 March 2004 - 01:57 PM

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.

#26 User is offline   serialzs 

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

  Posted 31 March 2004 - 10:56 AM

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

#27 User is offline   Alexey 

  • Newbie
  • Group: Members
  • Posts: 19
  • Joined: 19-March 04

Posted 01 April 2004 - 01:56 PM

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

#28 User is offline   diesel_98a 

  • Spurz 4 Life....
  • PipPipPipPip
  • Group: Members
  • Posts: 532
  • Joined: 26-July 03

Posted 02 April 2004 - 09:15 PM

where does this go?

[Cabs]
driver=driver.cab
SP1=SP1.cab
mydrivers=mydrive.cab


in the textsetup.sif or the drvindex.inf?

#29 User is offline   Alexey 

  • Newbie
  • Group: Members
  • Posts: 19
  • Joined: 19-March 04

Posted 03 April 2004 - 02:11 AM

You have to add it in drvindex.inf definitely.

#30 User is offline   serialzs 

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

Posted 03 April 2004 - 04:56 AM

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

#31 User is offline   Alexey 

  • Newbie
  • Group: Members
  • Posts: 19
  • Joined: 19-March 04

Posted 04 April 2004 - 12:55 AM

@Serialz
Thank you in advance.
Here they are (files).
I'm using Windoes 200 Pro SP4 Russian localized OEM.
For more simplicity lets consider NVIDIA WinXP/W2k 56.64 driver.
I cut distributive a bit (language files and IIS files) and got the set wich I packed using iexpress (SED file included). Please check integrity of idea.
During installation attemp it stops on first string, contains 100 value. Maybe W2k doesn't understand it...

Attached File(s)



#32 User is offline   Alexey 

  • Newbie
  • Group: Members
  • Posts: 19
  • Joined: 19-March 04

Posted 04 April 2004 - 01:04 AM

Sorry, I forgot to zip files...

Attached File(s)

  • Attached File  setup.zip (65.61K)
    Number of downloads: 2526


#33 User is offline   serialzs 

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

Posted 04 April 2004 - 03:42 AM

@alexey

i see it right now!! :D

it is not working because the TXTSETUP.SIF have different VALUES...

change the 100 to 1

let see if it works!!! :rolleyes:

NOTE: edit the WINNT.SIF

[Unattended]
OemPnPDriversPath="Windows\TEMP"

to install your drivers unattended!!! :)

-=[serialzs]=-

#34 User is offline   Alexey 

  • Newbie
  • Group: Members
  • Posts: 19
  • Joined: 19-March 04

Posted 05 April 2004 - 12:53 AM

Right. It seems to me that I can now install W2k at least :))
The reason of fail is definitely code that means "copy from CD \I386 to...". For your OS it is "100" and "1" for mine W2k. Thus here is solution. Unfortunately I can't check it right now but I'll do it as soon as I can and revert to you on this board. Also it is not possible to check driver installation using WMWare Workstation, I have to do it on real system.
Also there is difference in our winnt.sif - I mentioned in it that place for system folder location is winnt and you are using windows folder.
Thank you VERY MUCH!!!
Your idea should work for installation of some apps f.i. JRE by the same way - you can make cab file, include it into list of cab files, make direction where to copy it during installation and run it using RunOnceEx, huh?

Thank you once again and promiser to report about result,

Alexey

#35 User is offline   Alexey 

  • Newbie
  • Group: Members
  • Posts: 19
  • Joined: 19-March 04

Posted 10 April 2004 - 06:45 AM

@Serialzs

I have doubt again regarding PnPOemDriverPath.
Dear Serialzs, please chech your winnt.sif and replay what did you use for parameter OemPreimstall - YES or NO???
I suppose that if I'll use YES Windows will search for drivers directory $OEM$.
Am I right?

#36 User is offline   serialzs 

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

Posted 11 April 2004 - 12:57 PM

Alexey, on Apr 10 2004, 06:45 AM, said:

@Serialzs

what did you use for parameter OemPreimstall - YES or NO???
I suppose that if I'll use YES Windows will search for drivers directory $OEM$.
Am I right?

@alexey

your spelling is wrong :rolleyes:

yup it must be YES :)

OemPreinstall=YES


-=[serialzs]=-

#37 User is offline   weihuisheng 

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

Posted 28 May 2004 - 09:09 AM

I want to know
I add some unsigned driver to the xp cd
Could it be setup automatically??

#38 User is offline   weihuisheng 

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

Posted 28 May 2004 - 09:09 AM

I want to know
I add some unsigned driver to the xp cd
Could it be setup automatically??

#39 User is offline   serialzs 

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

  Posted 28 May 2004 - 11:23 AM

@weihuisheng

i think it will setup automatically...

to know if it work go to DEVICE MANAGER...
then Right click the DEVICE then press Update Driver...
then search the *.inf in unsigned driver...

if it install it will setup automatically...
and if not tell me what's happening... :)

#40 User is offline   weihuisheng 

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

Posted 28 May 2004 - 08:01 PM

thanks ,@serialzs
but I think you dno't understand what I mean
I want to know
Will it be installed automatically while I install my xp??
I check Ignore in my xp drivers install selection

Share this topic:


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

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



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