MSFN Forum: DrvComp v2007.08.09 - MSFN Forum

Jump to content


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

DrvComp v2007.08.09 Driver compression for drivers with .inf files Rate Topic: -----

#21 User is offline   Viper999 

  • Member
  • PipPip
  • Group: Members
  • Posts: 109
  • Joined: 22-June 04

Posted 13 July 2007 - 01: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.


#22 User is offline   Inferi0r 

  • Little dude
  • PipPip
  • Group: Members
  • Posts: 180
  • Joined: 28-July 06

Posted 16 July 2007 - 09:47 AM

Wow I like this very much. Its working on multilanguage drivers :thumbup

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

Thanks in advantage

#23 User is offline   Roufneck 

  • Junior
  • Pip
  • Group: Members
  • Posts: 60
  • Joined: 28-January 06

Posted 16 July 2007 - 12:35 PM

View PostViper999, on Jul 13 2007, 09:08 PM, said:

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.

#24 User is offline   Roufneck 

  • Junior
  • Pip
  • Group: Members
  • Posts: 60
  • Joined: 28-January 06

Posted 16 July 2007 - 12:59 PM

View PostMalarky, on Jul 16 2007, 05:47 PM, said:

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.

View PostMalarky, on Jul 16 2007, 05:47 PM, said:

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.

View PostMalarky, on Jul 16 2007, 05:47 PM, said:

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.

View PostMalarky, on Jul 16 2007, 05:47 PM, said:

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

#25 User is offline   Inferi0r 

  • Little dude
  • PipPip
  • Group: Members
  • Posts: 180
  • Joined: 28-July 06

Posted 16 July 2007 - 02:28 PM

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

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

#26 User is offline   Roufneck 

  • Junior
  • Pip
  • Group: Members
  • Posts: 60
  • Joined: 28-January 06

Posted 17 July 2007 - 05:02 AM

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?

#27 User is offline   Roufneck 

  • Junior
  • Pip
  • Group: Members
  • Posts: 60
  • Joined: 28-January 06

Posted 17 July 2007 - 05:28 AM

View PostMalarky, on Jul 16 2007, 10:28 PM, said:

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.

#28 User is offline   Inferi0r 

  • Little dude
  • PipPip
  • Group: Members
  • Posts: 180
  • Joined: 28-July 06

Posted 17 July 2007 - 01:39 PM

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.

#29 User is offline   Roufneck 

  • Junior
  • Pip
  • Group: Members
  • Posts: 60
  • Joined: 28-January 06

Posted 17 July 2007 - 05:38 PM

View PostMalarky, on Jul 17 2007, 09:39 PM, said:

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

View PostMalarky, on Jul 17 2007, 09:39 PM, said:

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.

View PostMalarky, on Jul 17 2007, 09:39 PM, said:

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.

#30 User is offline   uncajesse 

  • Group: Members
  • Posts: 2
  • Joined: 18-July 07

Posted 18 July 2007 - 06:46 AM

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:
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. ;) [/edit]

This post has been edited by uncajesse: 18 July 2007 - 06:51 AM


#31 User is offline   Viper999 

  • Member
  • PipPip
  • Group: Members
  • Posts: 109
  • Joined: 22-June 04

Posted 18 July 2007 - 05:00 PM

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.

#32 User is offline   dbrunton 

  • Newbie
  • Group: Members
  • Posts: 25
  • Joined: 20-July 06

Posted 19 July 2007 - 12:49 AM

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.

#33 User is offline   Roufneck 

  • Junior
  • Pip
  • Group: Members
  • Posts: 60
  • Joined: 28-January 06

Posted 19 July 2007 - 01:46 AM

View PostViper999, on Jul 19 2007, 01:00 AM, said:

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.

#34 User is offline   Roufneck 

  • Junior
  • Pip
  • Group: Members
  • Posts: 60
  • Joined: 28-January 06

Posted 19 July 2007 - 01:53 AM

View Postdbrunton, on Jul 19 2007, 08:49 AM, said:

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.

#35 User is offline   dbrunton 

  • Newbie
  • Group: Members
  • Posts: 25
  • Joined: 20-July 06

Posted 19 July 2007 - 03:53 AM

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.

This post has been edited by dbrunton: 19 July 2007 - 03:54 AM


#36 User is offline   Roufneck 

  • Junior
  • Pip
  • Group: Members
  • Posts: 60
  • Joined: 28-January 06

Posted 19 July 2007 - 04:26 AM

View Postdbrunton, on Jul 19 2007, 11:53 AM, said:

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.

This post has been edited by Roufneck: 19 July 2007 - 10:38 AM


#37 User is offline   dbrunton 

  • Newbie
  • Group: Members
  • Posts: 25
  • Joined: 20-July 06

Posted 19 July 2007 - 05:18 AM

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.

This post has been edited by dbrunton: 19 July 2007 - 05:20 AM


#38 User is offline   Viper999 

  • Member
  • PipPip
  • Group: Members
  • Posts: 109
  • Joined: 22-June 04

Posted 20 July 2007 - 12: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.

#39 User is offline   Roufneck 

  • Junior
  • Pip
  • Group: Members
  • Posts: 60
  • Joined: 28-January 06

Posted 21 July 2007 - 01:39 AM

View PostViper999, on Jul 20 2007, 08:00 PM, said:

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.

#40 User is offline   Viper999 

  • Member
  • PipPip
  • Group: Members
  • Posts: 109
  • Joined: 22-June 04

Posted 26 July 2007 - 06:21 AM

Awesome !!!!!! How is it going with the integrating drivers ?

Share this topic:


  • 4 Pages +
  • 1
  • 2
  • 3
  • 4
  • 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