Jump to content











Photo
- - - - -

FindHWIDS - The INF searching HWID exporter


  • Please log in to reply
14 replies to this topic

#1 kickarse

kickarse

    Member

  • Members
  • 67 posts
  • Location:USA
  •  
    United States

Posted 19 September 2008 - 04:56 PM

Hi All,

I've been writing another program in my spare time. But I'd thought I'd share it with you at this stage of deployment because of a feature that I've added to it.

=== Introduction ===
FindHWIDS will output HWIDS from an INF file or files to a CSV and Sysprep.inf file. CSV output will give you all HWIDS including duplicates, plus driver date, version, etc. The Sysprep.inf output will not produce ANY duplicates. So there's no worry about crashing from having multiple HWIDS pointing to multiple INF's. And it'll only parse SCSIAdapter, System and HDC.

FindHWIDS will recursively scan a folder, looking at all folders within that one folder, for any INF files. It will then scan each INF file for HWIDS, those that aren't commented or not usuable in any way. FindHWIDS can also scan multiple different folders and/or files by dragging and dropping these into the Location input box.

FindHWIDS will also allow you to only export the hardware found in the current system. Useful for PE environments to export to sysprep.inf for an offline integration of MassStorage drivers. I haven't tested this function fully yet with PE. So please test!

There's also the ability to export all current hardware in the system to a log file, with information about the currently installed hardware. Useful for testing and troubleshooting purposes.

Code is freely available just let me know.

Download:
https://sourceforge....ckage_id=290009

Discussed in detail:
http://forum.driverp...pic.php?id=3018

=== Change Log ===
v3.2f @ 2009-03-20 -
-- Changed so that you can export multiple types at a time (getting ready for reg import, oempnpdrivers section)
-- Removed Excel functionality because: 1) Excel dependency and 2) CSV is faster and produces the same output and 3) Having to edit both the CSV and Excel to look the same was annoying
-- Improved GUI look and added banner
-- Improved and cleaned up some backend code
MD5 - C0EA65EC0268BCD9956CD33B312549B7

#2 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 21 September 2008 - 01:01 AM

Hi kickarse,

i just used this utility to learn current hwid information, had a minor issue,
here is a picture that explain everthing i guess.
http://img212.images...49/snap1la9.png
if you find the reason please write what the problem is which will be very useful (also i can make trial for any further version)

#3 kickarse

kickarse

    Member

  • Members
  • 67 posts
  • Location:USA
  •  
    United States

Posted 21 September 2008 - 04:10 PM

Hi kickarse,

i just used this utility to learn current hwid information, had a minor issue,
here is a picture that explain everthing i guess.
http://img212.images...49/snap1la9.png
if you find the reason please write what the problem is which will be very useful (also i can make trial for any further version)


You know what i possibly is that Shellexecute (an autoit function) didn't work for some reason with the x64 bit. I'll just turn that off for 64 bit OS's in the next revision to make it NOT automatically open for you after it makes the hardware log.

Plus, thinking about it now, do you think it should be saved temporarily to a temp dir instead of the folder it was run from? Just trying to make it usable for both normal XP/2003 environments and PE.

Thanks Lance!

#4 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 21 September 2008 - 04:19 PM

Plus, thinking about it now, do you think it should be saved temporarily to a temp dir instead of the folder it was run from? Just trying to make it usable for both normal XP/2003 environments and PE.

You could make it switch. Let it try to save to own directory first and if that's not possible, have it save the log to %temp%.

:huh:

#5 kickarse

kickarse

    Member

  • Members
  • 67 posts
  • Location:USA
  •  
    United States

Posted 21 September 2008 - 05:12 PM

You could make it switch. Let it try to save to own directory first and if that's not possible, have it save the log to %temp%.

:huh:


Now there's some forward thinking! That's a good idea MadEvil. I'll incorporate that functionality.

#6 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 21 September 2008 - 06:21 PM

Sorry for late answer, mailnotification isnt working today


Plus, thinking about it now, do you think it should be saved temporarily to a temp dir instead of the folder it was run from?


medevil :huh:


For x64 compatibility, this works with au3 and 'au3 compile x86':
Run ( 'notepad.exe Export.of.Current.Hardware.log' )
i attach file to test that works nicely with x64.

#7 kickarse

kickarse

    Member

  • Members
  • 67 posts
  • Location:USA
  •  
    United States

Posted 21 September 2008 - 07:34 PM

Sounds good to me Lance. Thanks for the test!

#8 kickarse

kickarse

    Member

  • Members
  • 67 posts
  • Location:USA
  •  
    United States

Posted 23 September 2008 - 04:24 PM

v3.0.9 is out. Let's see how this one does, eh? :huh:

#9 kickarse

kickarse

    Member

  • Members
  • 67 posts
  • Location:USA
  •  
    United States

Posted 23 September 2008 - 07:16 PM

v3.1 is out. Check the first post for the change log.

#10 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 24 September 2008 - 12:05 AM

kickarse
:huh: works nicely with x64 :huh:

#11 kickarse

kickarse

    Member

  • Members
  • 67 posts
  • Location:USA
  •  
    United States

Posted 25 September 2008 - 12:38 PM

kickarse
:huh: works nicely with x64 :huh:


Excellent! Version 3.1.1 will fix Sysprep to only import HDC and SCSIAdapter for the current hardware. It current also does System. I'm also going to add options to override what architecture and OS type you can import driver from. So if your PE disk is XP x86 and your system you are wishing to Sysprep is 2003 x64 you won't fsck things up. I also have to fix a couple issues with the auto check hardware function for getting the exact OS and architecture types.

#12 kickarse

kickarse

    Member

  • Members
  • 67 posts
  • Location:USA
  •  
    United States

Posted 26 September 2008 - 01:26 PM

v3.1.1 is out!

#13 kickarse

kickarse

    Member

  • Members
  • 67 posts
  • Location:USA
  •  
    United States

Posted 14 March 2009 - 02:42 PM

v3.2e is out!

v3.2e @ 2009-02-27 -
-- Fixes tip help from "comma" to "Pipe symbol"
-- Fixes some internals issues with deleting old export hardware profile
-- Changed visuals to all display internally on main window, exporting hardware profile will not show tooltip
-- More visual changes - clear button for locations, filters
-- Fixes main window on top issue when browsing for folder/file locations
v3.2d @ 2009-02-26 -
-- Fixed issue with timers displaying properly.
-- Speeds up exporting via Excel by hiding Excel
-- Adds ClassGUID to outputs Excel and CSV
-- Change GUI background to white
-- Scanning process no longer minimizes main window and adds Tooltip processing. Processing staying in main window and updates Statusbar area.
-- Fixes issue with _INIReadSectionEx to skip commented out lines.
-- Fixes issue with adding any HWID filters. You must use the Pipe symbol on all filter seperations. Updated the help functions to coincide with changes.
v3.2b @ 2009-02-24 - Fixed issue with counting INF files scanned. Changed exit function to delete only data it put there. Fixes issue with the inireadsection not grabbing data over 32k, now using Smoke_N UDF to pull data from the sections.
v3.2 @ 2008-10-26 11:48pm EST - Created a function to scan for variables within the INF. Reducing bad data (hopefully eliminated). Scan speed is about the same.
v3.1.9.1 @ 2008-10-23 2:19pm EST - Scan time has also been reduced about 20%.
v3.1.9 @ 2008-10-23 11:49pm EST - Fixed flawed logic with strings. Hopefully rebuilding soon with a better way of handling strings. Though this version fixes some missed converting of strings into hwids.
v3.1.8 @ 2008-10-22 6:28pm EST - Adds install as an option (with DPinst.exe 32bit english only, copyright Microsoft), installing only hardware found on machine. Improves on scanning speed. Fixes some strings issue.
v3.1.7 @ 2008-09-28 5:42pm EST - Adds scan time, files scanned and hwids found to excel and csv output. Moved scanning of certain parts of the INF to produce a faster scan. Changed during scan the FindHWIDs window now minimizes.
v3.1.6 @ 2008-09-28 4:41pm EST - Fixes CSV output to mimic Excel output. Now exports the INF Description (also still outputs the PNPID description)
v3.1.5 @ 2008-09-26 11:03am EST - Added OS and OS Architecture as a filter. Choosing sysprep output will automatically choose filtering of OS and OS architecture.
v3.1.3 @ 2008-09-26 11:03am EST - Changed find hash to using fshash.dll instead. Much faster, in fact almost as fast as native scanning. Adding MD5 and Class to csv output.
v3.1.2 @ 2008-09-26 10:46am EST - Added md5deep to check hashing, however this version is extremely slow.
v3.1.1 @ 2008-09-26 8:24am EST - Changes Sysprep to scan for only SCSIAdapter and HDC. Corrected hardware filter for OS and Arch types.

#14 kickarse

kickarse

    Member

  • Members
  • 67 posts
  • Location:USA
  •  
    United States

Posted 21 March 2009 - 07:27 PM

New Release!

v3.2f @ 2009-03-20 -
-- Changed so that you can export multiple types at a time (getting ready for reg import, oempnpdrivers section)
-- Removed Excel functionality because: 1) Excel dependency and 2) CSV is faster and produces the same output and 3) Having to edit both the CSV and Excel to look the same was annoying
-- Improved GUI look and added banner
-- Improved and cleaned up some backend code

MD5 - C0EA65EC0268BCD9956CD33B312549B7

#15 kickarse

kickarse

    Member

  • Members
  • 67 posts
  • Location:USA
  •  
    United States

Posted 09 February 2010 - 06:52 PM

3.2L is out!

http://sourceforge.n...amp;sortdir=asc




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users