Help - Search - Members - Calendar
Full Version: DrvComp v2007.08.09
MSFN Forums > Unattended Windows Discussion & Support > Device Drivers
Pages: 1, 2

   
Google Internet Forums Unattended CD/DVD Guide
Roufneck
I created this new topic on request.

Features:
- Driver compression: This works only for drivers with .inf files!
- Multi directory / multi inf files
- Cab files support
- Driver version check
- Class/Provider dir structure creation
- nVidia international driver support
- XP installation CD driver integration

Known errors:
- When using Provider Disk Structure in combination with Realtek and VIA vinyl
audio drivers, it creates a directory for every .inf file and copies the same
drivers to all the dirs.
- If there are 2 SourceDiskFiles sections it scans only the first one and won't
copy files in the sections afterwards. (Logitech mouse drivers)

How does this work?
Driver Compressor searches in the source directory for .inf files. From this file it gets all the necessary information. Then it copies the source files to a new destination and compresses it.

For more info, read the included readme.txt file.

Changelog:
2007.08.09 Added XP installation CD driver integration.
2007.08.03 Renamed next button into Start.
2007.08.03 Fixed cancel button so the program exits.
2007.07.19 Fixed compatibility with Win98 as host OS.
2007.07.17 Added nVidia international driver support
2007.05.19 Improved check for source and destination dir.
2007.05.17 Added about link to readme.txt.
2007.05.17 Added some debug info to the log file.
2007.05.17 Fixed error 'Parameter format not correct'.
2007.05.16 Added check for same source and destination dir.
2007.05.16 Added displaying version.
2007.05.16 Copy catalog is selected by default.
2006.03.07 Disabled warning message for missing .com, .sys, .dos and .vxd files.
2006.03.06 Fixed error with files extensions less than 3 characters (ATI).
boooggy
nice
did it work with nvidia net drivers?.....
Roufneck
I tested this with the BTS driver packs and installed it on a few pc's. One of them had a nforce 2 mainboard. It is working now.
Daedlus
I must say... this is the best thing tool i have run into... I can cut all the garbage out of the package that the manufacturers give me and end up with just the drivers... I have not come across any driver that this does not work with. thumbup.gif
Kelsenellenelvian
Any news? I love this tool...
Roufneck
QUOTE (Kelsenellenelvian @ May 14 2007, 01:16 PM) *
Any news? I love this tool...


Me too thumbup.gif
Any ideas what you like to see changed/added to take it to the next level?
Kelsenellenelvian
Yeah copying the .cat file is a MUST can you make it checkd by defualt?
An actual version number system would be nice. What version is the current?

Let me think some more.
Roufneck
QUOTE (Kelsenellenelvian @ May 16 2007, 12:58 AM) *
Yeah copying the .cat file is a MUST can you make it checkd by defualt?
An actual version number system would be nice. What version is the current?


- Copy .cat is checked by default.
- Version 2007.05.16
Kelsenellenelvian
Quick thing can you re-enable the welcome\type first box I liked it plus it had a lot of info in it. Or maybe add a readme\about button that brings up that window.

Also why does it always say parameter not correct yet it still properly proccess my drivers?

Thanks for the quick work.
Roufneck
QUOTE (Kelsenellenelvian @ May 16 2007, 10:12 AM) *
Also why does it always say parameter not correct yet it still properly proccess my drivers?


Don't know. Where and when does it say that?
Kelsenellenelvian
This is using the nVidia drivers straight from their site and I have had it happen on lots of other drivers.

CODE
ini file:

[Settings]
Source=C:\Documents and Settings\Kelsenellenelvian\Desktop\Main
Destination=C:\Documents and Settings\Kelsenellenelvian\Desktop\New Folder
Type=.x86
CopyCatalog=1
UseProvider=0

CODE
log file:

Initializing...
Expanding cabinet files...
Removing attributes from files...
Parameter format not correct -
[+] \nv4_disp.inf
Removing temp dirs...
Compressing cabinet files...
Compressing copied files...

Processed 1/1 .inf files in 1 min 47 sec 640 ms.
Roufneck
What OS do you use XP or Vista? It looks like vista.
Roufneck
Never mind, I think I already found and fixed it.

- Added about link to readme.txt.
- Added some debug info to the log file.
- Fixed error 'Parameter format not correct'.
- Added check for same source and destination dir.
Kelsenellenelvian
You are the best! thanks!
yadzil
after compress how can i use the compress driver to my xp cd?
Roufneck
QUOTE (yadzil @ May 18 2007, 06:25 PM) *
after compress how can i use the compress driver to my xp cd?

I use a modified version of this: Drivers From CD (Simple Method)
Basically I put the drivers in $OEM$\.drivers. This auto copies the driver to the windir. And with the batch file I then integrate the drivers with SetupCopyOEMInf.exe. And I scan every HD and CD for \.drivers and integrate those as well. This way I can those to leave the drivers on the CD, copy them to the windir or even use the latest drivers from the HD.

I hope it makes sense. Anyway, if you compress the main BTS driver packs (not the b/c sound and display packs you can have winxp, drivers and some basic programs like firefox on 1 CD.
dxdisaster
I believe I found two bugs with the Razer/Copperhead drivers. Firstly it seems to copy & compress the files ~43 times; this happens if either the copy cat files option is selected or not. Second bug is that when you select the Provider Disk Structure, it copies and structures the files properly, but Windows bluescreens at the moment you close DrvComp.

The attached file has the DrvComp log and the Copperhead drivers if you want to take a look.

Edit: A few minutes after I posted this, I randomly got the same bluescreen. So while it was caused by DrvComp, it is quite probable that my system already had some other problem. It would still be useful if somebody could test for the second bug.
Roufneck
QUOTE (dxdisaster @ May 19 2007, 07:38 AM) *
I believe I found two bugs with the Razer/Copperhead drivers. Firstly it seems to copy & compress the files ~43 times; this happens if either the copy cat files option is selected or not. Second bug is that when you select the Provider Disk Structure, it copies and structures the files properly, but Windows bluescreens at the moment you close DrvComp.

The attached file has the DrvComp log and the Copperhead drivers if you want to take a look.

Edit: A few minutes after I posted this, I randomly got the same bluescreen. So while it was caused by DrvComp, it is quite probable that my system already had some other problem. It would still be useful if somebody could test for the second bug.

Thanx for the feedback. You used the destination dir as a subdir from the source. This causes a loop back. Try this:

Source: 'C:\Progs\Razer\Copperhead\Driver'
Destination: 'C:\Progs\Razer\Copperhead\Comp'

In the mean time I guess I have to rewrite the dir checking code.
Roufneck
Improved check for source and destination dir.

@dxdisaster
Can you try the new version and tell me if you still get the bleuscreen.
dxdisaster
QUOTE (Roufneck @ May 19 2007, 01:51 AM) *
Improved check for source and destination dir.

@dxdisaster
Can you try the new version and tell me if you still get the bleuscreen.

Worked perfectly. Thanks. smile.gif
Viper999
would it be possible to add the functionality to then modify the txtsetup.sif and dosnet.inf appropriately. let say you also move them to i386\custdrv directory as well with those added adjustments to the above mentioned files. This way you compess drivers and add them to windows source. Two files that may need to keep in mind is the sfcfiles.dll and syssetup.dll.
Inferi0r
Wow I like this very much. Its working on multilanguage drivers thumbup.gif

From the readme:
QUOTE
Copies catalog diles as well. Needed for WHQL driver signing. You don't need
this if you have patched SFC.


Thats mean to keep the WHQL driver signing?

Maybe is it possible to add a functional option to the program to remove helpfiles from drivers. Most people don't use offline helpfiles.
2th: this program would be perfectly if there is an option to add the current settings of your drivers (like device control etc.) to the compressed driver on an easy way. Maybe it sounds to hard.

My 93.71_forceware_winxp2k_international_whql is unpacked 66 MB and compressed 20,7 MB.
But my Creative SBA_PCDRV_LB_1_04_0061 is unpacked 64,8 MB and compressed 3,13 MB.

Is this normal? Of lose I my Creative EAX-Console, Creative Soundssettings and Creative Device Control?
Thats no problem if i can add my current settings for my sound driver of these 3 programs in the compressed driver as I say. newwink.gif

Thanks in advantage
Roufneck
QUOTE (Viper999 @ Jul 13 2007, 09:08 PM) *
would it be possible to add the functionality to then modify the txtsetup.sif and dosnet.inf appropriately. let say you also move them to i386\custdrv directory as well with those added adjustments to the above mentioned files. This way you compess drivers and add them to windows source. Two files that may need to keep in mind is the sfcfiles.dll and syssetup.dll.


I don't have much experience adding drivers like this, but I can look into this. What I do at the moment is compressing the BTS driver packs, copy the drivers with my $OEM$ dir to the windows dir and integrate the INF files before the install driver detection. Or integrate directly from the CD.
Roufneck
QUOTE (Malarky @ Jul 16 2007, 05:47 PM) *
Copies catalog files as well. Needed for WHQL driver signing. You don't need this if you have patched SFC.
Thats mean to keep the WHQL driver signing?

Yes, it does. I will change this to make it clearer.

QUOTE (Malarky @ Jul 16 2007, 05:47 PM) *
Maybe is it possible to add a functional option to the program to remove helpfiles from drivers. Most people don't use offline helpfiles.

I need to do some experimenting with this. I know in general you don't need these files. But I don't know what happens if I remove them from the INF files.

QUOTE (Malarky @ Jul 16 2007, 05:47 PM) *
2th: this program would be perfectly if there is an option to add the current settings of your drivers (like device control etc.) to the compressed driver on an easy way. Maybe it sounds to hard.

Interesting idea and probably not impossible. Don't know if it is usefull. The idea is to make 1 CD for several different PC's, with different hardware. I have to look into the default settings and see if I can come up with some tuning options / detection. But I will keep in mind that they have to work on other PC's as well.

QUOTE (Malarky @ Jul 16 2007, 05:47 PM) *
My 93.71_forceware_winxp2k_international_whql is unpacked 66 MB and compressed 20,7 MB.
But my Creative SBA_PCDRV_LB_1_04_0061 is unpacked 64,8 MB and compressed 3,13 MB.
Is this normal? Of lose I my Creative EAX-Console, Creative Soundssettings and Creative Device Control?

DrvComp looks into the inf file and copies all files in that. Meaning, it uses exactly the same files as if you would get a popup from the auto install wizard and you point to a directory with the proper inf and install files. What installers (.exe .msi) can do extra is adding consoles and extra tools or programs. This can't be done with DrvComp. You need to find out what the command line options are for silent install and run this after installing XP or do this manually.

If you don't want all the international help files from nvidia, use the english version in stead. If you compress this, you don't get all the unwanted helpfiles and it can compress to 8.56 MB (version 94.24).
Inferi0r
QUOTE
I need to do some experimenting with this. I know in general you don't need these files. But I don't know what happens if I remove them from the INF files.


Take a look here. This batch file deletes unneeded helpfiles (of all: all options are optional biggrin.gif ) and more unneeded files

QUOTE
Interesting idea and probably not impossible. Don't know if it is usefull. The idea is to make 1 CD for several different PC's, with different hardware. I have to look into the default settings and see if I can come up with some tuning options / detection. But I will keep in mind that they have to work on other PC's as well.


I have checked it and found all the settings of my sound driver in the register. So, that must not to be too difficult. Standard setting of my EAX-console is without Stereosurround. The sounds is without real crap. And the driver will be only installed for Creative Audigy SE Windows XP (Dutch) soundcards. So, if I had more pc's with the exactly that card and OS, I want on that pc surround sound. And keep in mind, give users choice with the optional option to integrate current settings. If you don't want; you don't get.

QUOTE
DrvComp looks into the inf file and copies all files in that. Meaning, it uses exactly the same files as if you would get a popup from the auto install wizard and you point to a directory with the proper inf and install files.


I've checked it and saw that every program has an apart folder and an apart inf file. That why the driver is so little. Now i integrate it in nLite in 4 parts. It would be nice if i can make it one, but yeah blushing.gif

QUOTE
If you don't want all the international help files from nvidia, use the english version in stead. If you compress this, you don't get all the unwanted helpfiles and it can compress to 8.56 MB (version 94.24).


I think I need a Dutch Control Panel. ohmy.gif
Roufneck
I added (beta) support for nVidia international drivers with auto language detection of the host OS. I know the language selection doesn't work if your OS language is not supported by nVidia. Can someone please test this option?
Roufneck
QUOTE (Malarky @ Jul 16 2007, 10:28 PM) *
I have checked it and found all the settings of my sound driver in the register. So, that must not to be too difficult. Standard setting of my EAX-console is without Stereosurround. The sounds is without real crap. And the driver will be only installed for Creative Audigy SE Windows XP (Dutch) soundcards. So, if I had more pc's with the exactly that card and OS, I want on that pc surround sound. And keep in mind, give users choice with the optional option to integrate current settings. If you don't want; you don't get.


I've looked into the inf files of several drivers. I think its gonna take a lot of time. The main problem is, how do I know what to change and what can be changed without messing up the installation.
An other problem is that some inf files are written very badly. I have to come up with some code to detect all the registry settings in a lot of different inf files that are written by different programmers.

You are talking about 1 option only: Stereo surround. If it is only about a few options, I think its better to patch the registry after installation (run once) and leave the inf files alone or if that is not an option for you, edit the inf files manually.

This doesn't mean I wont add this in the future. It only means that I will think about it and when I find a solution, I will add it.
Inferi0r
Hey! Thanks for the update man

I've tested the new version and founds something

At first I compress my unpacked driver with v2007.07.17.
At second I grab the driver that I use now, with DriverGrabber from Siginet, and then I've compressed it with v2007.07.17.

The maps were exactly the same except a few multilanguage files (not all multilanguage files!). I think this files will be used for the installation procedure of helpfiles.

List of files:

- nv3dNLD.chm
- nvcplnld.chm
- NVCPNL.HL_
- nvdspNLD.chm
- nvmobNLD.chm
- NVRSNL.dll
- nvwcpnl.hl_
- nvwrsnl.dll

You must know my current installed driver is also multilanguage and installed on the normal way. So if its normal that I miss these files, then they can removed with DrvComp also, or not?

For a reason I don't understand I can't use this drive compressor to test of there are maybe other things that can removed. Maybe you can test it?

QUOTE
I've looked into the inf files of several drivers. I think its gonna take a lot of time. The main problem is, how do I know what to change and what can be changed without messing up the installation.
An other problem is that some inf files are written very badly. I have to come up with some code to detect all the registry settings in a lot of different inf files that are written by different programmers.


I think i understand the problem in general. At first is hard to find the right regfiles (but that can the user do by himself) and at second it is often hard to convert regfiles to .inf on the right way. So I've searched and founded a program that can do that. Here is the Reg2Inf converter from n7Epsilon. The source code is included in the zip file, to make it easy.

But its your program and time. Its just a linkage to help you.
Roufneck
QUOTE (Malarky @ Jul 17 2007, 09:39 PM) *
The maps were exactly the same except a few multilanguage files (not all multilanguage files!). I think this files will be used for the installation procedure of helpfiles.

If you mean that these files are missing from the drivers grabbed with DriverGrabber, that is possible. Because it does the same as DriverCompressor. Checking for files in the inf and copy those.

These extra 8 files you add with DriverCompressor are the multi language files. These are not in the copy section in the inf file and must be added with an other routine like I did. If these files are missing, the driver will fall back to english. To remove these files, unclick the international driver support option I added. You will loose the dutch language support though (I think).

QUOTE (Malarky @ Jul 17 2007, 09:39 PM) *
For a reason I don't understand I can't use this drive compressor to test of there are maybe other things that can removed. Maybe you can test it?

I think it is because the program works completely different than mine. You probably only can use it with the standard unpacked setup file. DriverCompressor scans inf files for files to copy, this way it should work with every inf file. The program from laptopvideo2go hardcoded the files to delete.

QUOTE (Malarky @ Jul 17 2007, 09:39 PM) *
I think i understand the problem in general. At first is hard to find the right regfiles (but that can the user do by himself) and at second it is often hard to convert regfiles to .inf on the right way.

That is not the problem. The big problem is scanning the inf file for the default registry settings and keys. This is done differently for different manufacturers. The easy part will be reading these settings from the registry and set these as defaults. I can easily hardcode some registry settings, but I don't want to do this. That way I may have to update the program each time a new driver comes out.
uncajesse
re: NVLiTE... v2.119 (the latest when i'm writing this) has an issue with any driver versions 1xx.xx and above. It misreads them.

Instead, I recommend using this batch file:
CODE
rem Version 1.0
rem General Section
attrib -r -h -a -s *.*
expand -r *.* *.*
ren *.cf *.cfg
ren *.cp *.cpl
ren *.dl *.dll
ren *.ex *.exe
ren *.hl *.hlp
ren *.sy *.sys
ren *.tv *.tvp
del *.??_
del *.cab
del *.bin
del *.hdr
rem Various Manufacturers & Websites Section
del *.cva
del pme*.*
del get*.*
del *.tag
del *.lnk
del *.htm
in your working directory for your nVidia driver's, which will allow it to work fine with DrvComp, from what I've seen so far.

[edit] I just noticed you're using unpacked driver already, please excuse my post if you're already using this exact batch file. newwink.gif [/edit]
Viper999
What i was hoping for was an the ability for your utility to read the .inf file and take all the files necessary for a driver to work and then add entries in the textsetup.sif and dossetup.inf. This way the drivers would be truley integrated in windows source instead of method 1 or method 2 for driver detection.
dbrunton
Initializing Driver Compressor 2007.07.17.1246...

Source: 'C:\My Documents\drivers\rhine'
Destination: 'C:\MY DOCUMENTS\WINDOWS 2000\DRVCOMPRESSOR\Destination'
WHQL driver signing: 1
UseProvider: 0
Type: .x86
OS: 4.10.2222
OS language: English (United States)
OS locale: en_enu (0409)
Copy international driver files: 0

Expanding cabinet files...
Removing attributes from files...
Parse Error 3

[+] \FETNDIS.inf
[+] \winsetup\NTSetup.inf
Removing temp dirs...
Compressing cabinet files...
Compressing copied files...

Processed 2/2 .inf files in 0 min 7 sec 359 ms.

Completed

This is my log file while testing. Not sure about the Parse Error 3. It's pulling what seems to be the correct files and directory across to the destination but not doing any sort of compression, the files are just there.

The source is an x86 folder containing the files for a Rhine network card; no cab files are in there.
Roufneck
QUOTE (Viper999 @ Jul 19 2007, 01:00 AM) *
What i was hoping for was an the ability for your utility to read the .inf file and take all the files necessary for a driver to work and then add entries in the textsetup.sif and dossetup.inf. This way the drivers would be truley integrated in windows source instead of method 1 or method 2 for driver detection.

Do you know what entries to add and where? Or do you have some links where I can get the info? It would save a lot of time compared to method 1 and 2.

Hmmm... The only problem I can think off is adding different (manufacture modified) drivers with the same file name. I somehow need to recreate the dir structure in the i386 folder.
Roufneck
QUOTE (dbrunton @ Jul 19 2007, 08:49 AM) *
The source is an x86 folder containing the files for a Rhine network card; no cab files are in there.

Can you give me a link to the drivers you used? I tried with some Rhine network card drivers, but I cant reproduce it.
dbrunton
Can you give me a link to the drivers you used? I tried with some Rhine network card drivers, but I cant reproduce it.



http://www.viaarena.com/default.aspx?PageI...mp;SubCatID=147

The file that I downloaded was rhine-ndism-x86-x64-368-setup.zip with two folders x86 and Vista.

I ran your tool on the x86 folder.
Roufneck
QUOTE (dbrunton @ Jul 19 2007, 11:53 AM) *
The file that I downloaded was rhine-ndism-x86-x64-368-setup.zip with two folders x86 and Vista.
I ran your tool on the x86 folder.

I just saw that you use Windows 98 Second Edition. Think there is a problem with removing attributes from files. Could you try this file and post the log file?

Edit: Removed beta version.
dbrunton
Initializing Driver Compressor 2007.07.19.1222...

Source: 'C:\My Documents\drivers\x86'
Destination: 'C:\MY DOCUMENTS\WINDOWS 2000\NEWTEST\Destination'
WHQL driver signing: 1
UseProvider: 0
Type: .x86
OS: 4.10.2222
OS language: English (United States)
OS locale: en_enu (0409)
Copy international driver files: 0

Expanding cabinet files...
Removing attributes from files...
Parse Error 3

ATTRIB -A -R -H -S C:\My Documents\drivers\x86\* /S /D
ATTRIB -A -R -H -S C:\My Documents\drivers\x86\* /S

Scan INF files...
[+] \FETNDIS.inf
[+] \winsetup\NTSetup.inf
Removing temp dirs...
Compressing cabinet files...
Compressing copied files...

Processed 2/2 .inf files in 0 min 11 sec 144 ms.

Completed


File compression is occurring on the copied files. This was occurring on the original exe as well. That I did not notice - too much of a hurry.

I think I was presuming that the app would place all the files into a cab file for some reason from reading the messages. Unsure as to the parse error but it is occurring on another driver file I tested. But compression of the extracted files is occurring on this one as well plus the parse error.

No, the app is doing what it is supposed to be doing, just my eyesight. Apologies.

There are no attributes on the files concerned being worked on.
Viper999
Coud you just created custum dirs under I386 directory and add those custom dirs under txtsetup.sif ? This will avoid the issue with the potential of drivers having the same name.
Roufneck
QUOTE (Viper999 @ Jul 20 2007, 08:00 PM) *
Coud you just created custum dirs under I386 directory and add those custom dirs under txtsetup.sif ? This will avoid the issue with the potential of drivers having the same name.

I am already working on this and took nlite as an example. I have to solve a few minor problems and test it before I make it a public beta. So far it is looking good.
Viper999
Awesome !!!!!! How is it going with the integrating drivers ?
Roufneck
QUOTE (Viper999 @ Jul 26 2007, 02:21 PM) *
Awesome !!!!!! How is it going with the integrating drivers ?

Still work in progress. I don't have much spare time now, but will try to finish it by the end of next week.
Viper999
Getting close ?
Roufneck
QUOTE (Viper999 @ Aug 3 2007, 03:35 AM) *
Getting close ?

I think its working. However, there are some textsetup copy errors regarding to some .cat files. Haven't figured that out yet. But if someone wants to test and can find whats wrong.

Edit: removed beta version.
Viper999
I tested it on a few drivers and they integrated correctly as far aas I can tell. I need to do an install to make sure they install properly. Thank you for your efforts to this point. I am creating an autoit app that creates an unattended cd and am going to use your app to integrate the drivers. Awesome so far I will let you know what I find.
cyberloner
Thanks for super tools... get install all my drivers but only nvidia networking driver will have problem with it... keep asking for the file that exist in the folder....
so i use the default original driver for nvidia network... so everything is fine...
Save **** a lot spaces =) thanks
Roufneck
QUOTE (cyberloner @ Aug 4 2007, 06:15 PM) *
Thanks for super tools... get install all my drivers but only nvidia networking driver will have problem with it... keep asking for the file that exist in the folder....

Can you tell me which driver? (driver version, os, download location)
cyberloner
QUOTE (Roufneck @ Aug 4 2007, 02:45 PM) *
QUOTE (cyberloner @ Aug 4 2007, 06:15 PM) *
Thanks for super tools... get install all my drivers but only nvidia networking driver will have problem with it... keep asking for the file that exist in the folder....

Can you tell me which driver? (driver version, os, download location)


sure master
nvidia network drivers 60.2.4
Ethernet Driver (v60.24) "WHQL"
using winxp sp2 with all ryan updates

http://www.nvidia.com/object/nforce_680i_w...intel_9.53.html
cyberloner
si3132 raid driver also failure to be install...
windows keep asking for the file and need point it to the folder and select the compress file...
looks like this kind of driver doesn't like to be compress?
attach for u
Roufneck
Released DrvComp v2007.08.09 with XP installation CD driver integration.
uncajesse
Here's a driver that's not compressing properly. It doesn't find most of the files. It appears to be something related to the quotes, and maybe something else. I edited the quotes out and got rid of some of the errors, but there's still others.

It's a windows system driver (not their custom drivers) for Lexmark Z600 series.
http://www.sendspace.com/file/b089t0
have a crack at em... smile.gif
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.