MSFN Forum: [Utility] Driver Backup - MSFN Forum

Jump to content


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

[Utility] Driver Backup Searches for and backs up installed device drivers Rate Topic: -----

#1 User is offline   IcemanND 

  • MSFN Junkie
  • Group: Super Moderator
  • Posts: 3,266
  • Joined: 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 04 October 2006 - 08:16 PM

Dissatisfied with both freeware and commercial driver backup applications I wrote my own for personal and work use.

The biggest difference is that instead of relying on what is stored within Windows in regards to driver files it locates the install INF and then gathers the files from the files listed in it.

This has only been tested in 32 bit Windows XP. It may work in other version of Windows but I have no way to test. If you do and it works post here and I will update this post accordingly.

Requirements:
v2.1.x
mscomctl.ocx (sorry not licesnsed for distribution, believe it gets installed with Office so you may already have it)

v.79
Must be run with administrative permissions
.NET 1.1

Recommend 1024x768 resolution

How to use:
If you want the Microsoft drivers uncheck 'Non-Microsoft drivers only'
Click 'Scan System'
Highlight listed drivers you wish to backup
Enter path to backup drivers to
Click 'Backup Now'

Each driver will be backed up to its own folder inside of the folder you select named by what is shown on the screen.

Update Log:
v2.1.83 - complete rewrite, don't remember what other changes were made.
does not elevate permissions in Vista and 7, need to run as administrator

v.79b - 10/12 - 98
- fixed resoltion issues
- added additional logging

v.78b - 10/6 - 34
- fixed inf filname missing when no cat file found
- change 'browse' to start ad desktop
- modified data store

v.77b - 10/5 - 30
- Changed fonts to be static sizes.
- added select all button
- added additional error checking for folder creation

Attached File(s)




#2 User is offline   clavicle 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 454
  • Joined: 28-January 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 04 October 2006 - 09:53 PM

Good piece. I hope it will work well with creative audio drivers. They are rather tricky to backup and restore.

#3 User is offline   ricktendo 

  • Group: Banned Members
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,228
  • Joined: 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 04 October 2006 - 11:26 PM

OMG this is awesome... Been looking for something like this for ages to make my own BTS DriverPack's.

Thank you IcemanND for sharing this with us.

#4 User is offline   IcemanND 

  • MSFN Junkie
  • Group: Super Moderator
  • Posts: 3,266
  • Joined: 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 05 October 2006 - 06:32 AM

@clavicle - let me know I no longer have a machine with a Creative card so I can't test it.

#5 User is offline   MadBoy 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 467
  • Joined: 21-February 05
  • OS:none specified
  • Country: Country Flag

Posted 05 October 2006 - 10:06 AM

@IceMan: nice idea. I tried your program but eh it didnt work. When i have choosen few devices, set right path and stated your program i got error saying


Attached File  error.jpg (50.42K)
Number of downloads: 142


To make polish story short it says Script Error from internet Explorer.


And btw can you give me more info how you are backing up drivers? With steps prefered. I wanted to include this feature in my program Hardware instaler that is on this forum with Sticky.

Thanks,

#6 User is offline   P51D Mustang 

  • Newbie
  • Group: Members
  • Posts: 41
  • Joined: 19-January 04

Posted 05 October 2006 - 10:10 AM

Thanks for sharing, mon!

Trying it out as we speak...One typo noted in "Driver is unsigned, not catalog file available."

Also had to drop my font size setting back to the default from "Use Extra Large Fonts" so the controls on the top and bottom of the screen would show.

#7 User is offline   urie 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 517
  • Joined: 30-July 03

Posted 05 October 2006 - 10:51 AM

Quote

IcemanND, working great here Thanks
:thumbup

#8 User is offline   IcemanND 

  • MSFN Junkie
  • Group: Super Moderator
  • Posts: 3,266
  • Joined: 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 05 October 2006 - 10:54 AM

@madboy - what is the name of the driver it was attempting to back up? And did it contain any special characters, that would not be allowed in a file or directory name? And What directory are you backing up to? I thought I had removed all of the special characters and replaced them with underscores but where it says it is failing is on creating the folder to back up to.

@ P51D - Thanks type will be fixed in the next version. I'll see if I can fix the font size issue.


How it does it:
First it uses WMI to query Win32_PnPEntity to collect information on installed hardware.
Then using this it creates a directory named after the hardware description. If the folder already exists it deletes it and its contents first the recreates it.
Then searches for the INF file based on the information returned by the WMI call.
THen I parse the INF file to find what files are installed when using the INF and search for each first in the default install location and then on the entire boot drive for the file if not found in the appropriate windows subfolder.
then copy that file to the previously created folder
When the CAT file is found it is renamed to match what is listed in the INF, and I rename the INF to the same name also rather than have OEMXX.inf in all of the folders.
then repeat for the next selected driver.

This post has been edited by IcemanND: 05 October 2006 - 11:12 AM


#9 User is offline   IcemanND 

  • MSFN Junkie
  • Group: Super Moderator
  • Posts: 3,266
  • Joined: 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 05 October 2006 - 11:56 AM

I updated the coded to fix the font problem and added some additional error checking for folder creation.

Oh, and a select all button. :)

This post has been edited by IcemanND: 05 October 2006 - 11:57 AM


#10 User is offline   clavicle 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 454
  • Joined: 28-January 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 05 October 2006 - 08:13 PM

@IcemanND

The program has copied all the creative drivers, but the OS doesn't install drivers from backed up folder, both in unattended mode using, winnt.sif and manually after installation.

Secondly, the names inf files of couple of drivers are truncated. Like that of of creative and my TV Tuner card. What I get in backed up directory is only inf.

Attached File(s)

  • Attached File  inf.jpg (68.95K)
    Number of downloads: 165


#11 User is offline   IcemanND 

  • MSFN Junkie
  • Group: Super Moderator
  • Posts: 3,266
  • Joined: 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 05 October 2006 - 08:45 PM

Are the files in the picture all of the files found? No CAT file?

#12 User is offline   spazmire11 

  • MicrowinX Devoloper
  • PipPip
  • Group: Members
  • Posts: 275
  • Joined: 27-June 05

Posted 05 October 2006 - 09:01 PM

hmmm this looks cool!

unfortuantly it seems to lock up whenever i run the backup......
it gets to creating the folder for my all-in-wonder x800 driver and starts analizeing like oem6.inf then bombs out,

like so
Posted Image
it does take awhile however to do this.

when i selected only my nforce networking controller i got this
Posted Image

this is a good idea tho i think, just needs a little tweaking

Edit-
almost forgot, take a look at the browse button dialog.... for some reason i can select to expand file like folders from it, i think it'd be nice if it started from the desktop too.

This post has been edited by spazmire11: 05 October 2006 - 09:06 PM


#13 User is offline   clavicle 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 454
  • Joined: 28-January 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 05 October 2006 - 09:04 PM

Yes there are no cat files. The error was shown while compiling the drivers' backup.

All the files backed-up shown in the attachment.

Attached File(s)

  • Attached File  inf2.jpg (65.54K)
    Number of downloads: 93


#14 User is offline   IcemanND 

  • MSFN Junkie
  • Group: Super Moderator
  • Posts: 3,266
  • Joined: 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 05 October 2006 - 09:21 PM

Bound to find some bugs when you give it to the public to use on evedry piece of hardware out there. I only have access to a couple dozen different machine models.

@ clavicle - I think I found the problem you discovered. As soon as I find Spazmires I'll post an update, probably tomorrow morning.

@ spazmire - Two things can you email me the system_scan.csv file from your temp folder. and also I need the complete display name in the device manager for your network card. And I'll see if I can track down what happened there.

#15 User is offline   urie 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 517
  • Joined: 30-July 03

Posted 06 October 2006 - 04:33 AM

@clavicle have you tried renaming your driver folders removing the spaces.

#16 User is offline   IcemanND 

  • MSFN Junkie
  • Group: Super Moderator
  • Posts: 3,266
  • Joined: 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 06 October 2006 - 06:34 AM

Spaces in the path should make no difference whatsoever. I regularly backup the drivers to a folder on my desktop with multiple spaces in the path. And every driver that gets backed up has spaces in the name of the device which is how the folder is named.

@clavicle - If you rename the INF for your Audigy to audigy.inf do the drivers work?

@spazmire - I'm not sure what is happening with the problems you are seeing. the GUID that comes up as being unable to create folder is not a guid in the CSV file you sent me so I'm not sure where it even got it from in the first place. Once you click scan system all the information is either pulled from the CSV file or the related INF once that is located. And any folders are created before the INF is even searched for. I'll keep looking to see what I can find though.

#17 User is offline   MadBoy 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 467
  • Joined: 21-February 05
  • OS:none specified
  • Country: Country Flag

Posted 06 October 2006 - 07:24 AM

@IceMan: i doubt it's due to polish chars. Right now i choose MOBILITY RADEON and before i choose Backup dir i clicked Backup Now. Same error. Even if i don't choose anything and click Backup i get that error too :|
BTW. What's your programming experience with DLL CALLs and stuff like that?

#18 User is offline   IcemanND 

  • MSFN Junkie
  • Group: Super Moderator
  • Posts: 3,266
  • Joined: 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 06 October 2006 - 09:45 AM

v78 beta released

@madboy - I more programming experience than I admit to anyone. It's not something I do on a regular basis. I do it when I find something I need/want to do but can't find anything else that does the job I want. But I've been programming for more than 20 years in 8 languages. This is actually a small part of a much larger program I am working on.

#19 User is offline   MadBoy 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 467
  • Joined: 21-February 05
  • OS:none specified
  • Country: Country Flag

Posted 06 October 2006 - 10:13 AM

@IceMan

1. I keep getting same error :| Dunno what's wrong with it.
2. One suggestion, name your file with versions. So IE or Mozilla or some Proxy wouldn't cache it so one wouldn't use old bin by accident.

#20 User is offline   ricktendo 

  • Group: Banned Members
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,228
  • Joined: 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 07 October 2006 - 05:31 PM

Driver Backup Control Panel addon

Thank you IcemanND for giving me permission to make this, Great work on the program dude :thumbup

This post has been edited by ricktendo64: 07 October 2006 - 05:32 PM


Share this topic:


  • 6 Pages +
  • 1
  • 2
  • 3
  • Last »
  • 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