MSFN Forum: minf - minimize an INF file - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

minf - minimize an INF file latest beta: minf.04 Rate Topic: -----

#1 User is offline   jumper 

  • Masters HJ/TJ'er (back in training)
  • PipPipPip
  • Group: Members
  • Posts: 359
  • Joined: 21-January 11
  • OS:98SE
  • Country: Country Flag

Posted 14 December 2011 - 10:59 PM

minf (minimize INF file)
latest beta: Attached File  minf.04.exe (4K)
Number of downloads: 62

Done:
  • Convert UTF-16 (Unicode) to UTF-8 (ASCII)
  • Abbreviate lengthy section names
  • Remove comments and white space
  • Minimize variable names

To do:
  • Minimize section names
  • Remove non-9x sections
  • Create 9x sections from 2k/XP if missing

Why?
    To fix poorly tested Win9x installer information (INF) files.
    Enable 2K/XP WDM drivers to possibly work in 98/SE/ME.
    Addresses issues raised by jds and jaclaz in:

Suggested usage:
    Create a shortcut to minf in your Windows SendTo folder
    and send INF files to it using the right-click context menu.



Attached File  minf.01.exe (3.5K)
Number of downloads: 5 implements these first two features:
  • Convert UTF-16 (Unicode) to UTF-8 (ASCII)
    If the first two bytes of the file are FF FE or FE FF, those two bytes plus every other byte thereafter are removed.

  • Abbreviate lengthy section names
    All section names are checked for length. Any over 28 characters are abbreviated to 10..16 and all references patched.


Attached File  minf.02.exe (4K)
Number of downloads: 4 adds support for:
  • Remove comments and white space
    All comments and (non-quoted) white space are removed and new-lines reduced to a single line-feed.


Attached File  minf.03.exe (4K)
Number of downloads: 10 adds:
  • Minimize variable names
    All variable names are reduced to the range A-Z,A0-ZZ and references patched.
    A 75KB test file was reduced to 50KB!


Attached File  minf.04.exe (4K)
Number of downloads: 62 adds:
    + If any section names are squashed to 28, the original size is now reported.
    - Files not terminated with a line feed are now handled successfully.


To do:
  • Minimize section names
    It should be possible to do something similar to variable names, but decoration parsing will be required.

  • Remove non-9x sections
    Once I fully understand section naming and decorating conventions, it should be possible to completely remove sections not needed by Win9x.

  • Create 9x sections from 2k/XP if missing
    If no Win9x sections exist, an attempt could be made to adapt a 2K or XP section.

This post has been edited by jumper: 16 December 2011 - 06:12 AM



#2 User is offline   PROBLEMCHYLD 

  • The Resurrector for old Windows OS
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,466
  • Joined: 07-October 05
  • OS:98SE
  • Country: Country Flag

Posted 14 December 2011 - 11:24 PM

:thumbup This tool will come in handy converting WinXP inf to Win9X. Thanks jumper :thumbup

#3 User is offline   TmEE 

  • Mega Drive Modding Master
  • PipPip
  • Group: Members
  • Posts: 265
  • Joined: 17-September 08
  • OS:98SE
  • Country: Country Flag

Posted 16 December 2011 - 07:35 AM

Whoa, this is some nice stuff :D

I wonder if its worth to try it on some 2K/XP graphics drivers.....?

#4 User is offline   loblo 

  • Oldbie
  • PipPipPipPip
  • Group: Members
  • Posts: 679
  • Joined: 12-January 10
  • OS:ME
  • Country: Country Flag

Posted 16 December 2011 - 11:44 AM

View PostTmEE, on 16 December 2011 - 07:35 AM, said:

I wonder if its worth to try it on some 2K/XP graphics drivers.....?

I don't think so as display drivers aren't WDM drivers AFAIK and they require vxd and 16bit drv files for working on a 9x system, both of them being non-existent in 2K/XP only drivers.

#5 User is offline   TmEE 

  • Mega Drive Modding Master
  • PipPip
  • Group: Members
  • Posts: 265
  • Joined: 17-September 08
  • OS:98SE
  • Country: Country Flag

Posted 20 December 2011 - 03:42 AM

But 98 does support WDM... ? or it won't work for video cards ?

#6 User is offline   maximilliangreat 

  • Group: Members
  • Posts: 4
  • Joined: 19-September 11
  • OS:none specified
  • Country: Country Flag

Posted 20 December 2011 - 03:47 AM

Quote

Create 9x sections from 2k/XP if missing

jumper, I'm really waiting for this feature. Keep doing a good work!

#7 User is offline   loblo 

  • Oldbie
  • PipPipPipPip
  • Group: Members
  • Posts: 679
  • Joined: 12-January 10
  • OS:ME
  • Country: Country Flag

Posted 20 December 2011 - 04:47 AM

View PostTmEE, on 20 December 2011 - 03:42 AM, said:

But 98 does support WDM... ? or it won't work for video cards ?

Display drivers are kernel mode drivers not WDM ones and this applies to 2K/XP as well. AFAIK there is no way to use 2K/XP display drivers on 98/ME.

#8 User is offline   TmEE 

  • Mega Drive Modding Master
  • PipPip
  • Group: Members
  • Posts: 265
  • Joined: 17-September 08
  • OS:98SE
  • Country: Country Flag

Posted 20 December 2011 - 06:43 AM

aha :)

...the more you know ^^

but sound stuff is still applicable for the most part I would guess

#9 User is offline   loblo 

  • Oldbie
  • PipPipPipPip
  • Group: Members
  • Posts: 679
  • Joined: 12-January 10
  • OS:ME
  • Country: Country Flag

Posted 20 December 2011 - 08:09 AM

View PostTmEE, on 20 December 2011 - 06:43 AM, said:

but sound stuff is still applicable for the most part I would guess

Yeah, soundcards drivers and USB devices drivers are candidates I can think of but there is no guarantee all will work just because it has become possible to install them, some may and some other may not.

#10 User is offline   maximilliangreat 

  • Group: Members
  • Posts: 4
  • Joined: 19-September 11
  • OS:none specified
  • Country: Country Flag

Posted 20 December 2011 - 08:50 AM

View Postloblo, on 20 December 2011 - 08:09 AM, said:

Yeah, soundcards drivers and USB devices drivers are candidates I can think of


Network cards probably should work too.

#11 User is offline   MrTCNC 

  • Group: Members
  • Posts: 1
  • Joined: 25-April 12
  • OS:98SE
  • Country: Country Flag

Posted 19 May 2012 - 10:29 PM

Absolutely incredible! I can't wait to try this for the UAA HD bus > many thanks and kudos to all those wonderful, brilliant folks who develop software like this so that people like me can use it to perpetuate Windows 98 :thumbup

#12 User is offline   submix8c 

  • Inconceivable!
  • Group: Patrons
  • Posts: 3,241
  • Joined: 14-September 05
  • OS:none specified
  • Country: Country Flag

Posted 20 May 2012 - 03:47 PM

View PostMrTCNC, on 19 May 2012 - 10:29 PM, said:

Absolutely incredible! I can't wait to try this for the UAA HD bus > many thanks and kudos to all those wonderful, brilliant folks who develop software like this so that people like me can use it to perpetuate Windows 98 :thumbup
??? Not gonna happen! No drivers for that will EVER work on 9x! AFAIK, that's the case so you HAVE to disable OnBoard Sound and insert a an add-in card (NOT HD, of course).

Share this topic:


Page 1 of 1
  • 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