sintaxasn Posted April 9, 2005 Share Posted April 9, 2005 Hey there, If you're like me and you have an automated build solution that creates an image, you probably use Sysprep at the end to seal your machine. Adding new hardware support means putting all the drivers into a folder thats copied down as part of your build, and manually adding the folders to C:\Sysprep\Sysprep.INF in OemPnPDriversPath.This was bothering me, because I had a line that was about 2000 characters long and prone to typos, meaning your driver never got installed - plus you had to manually edit your Sysprep.INF.So I spent a bit of time writing this VBS file which will scan C:\BIN (or C:\Drivers, or whatever you want) for INF files - when it discovers one, it'll add it to your OemPnPDriversPath line. It's smart enough not to add duplicates, sorts alphabetically (so 00_Chipset will always be the first item), and lets you know if you exceed the 4096 character limit.Just download and rename to .VBS, add somewhere so that it runs prior to Sysprep starting and that's it. In future, all you have to do is pop your drivers into the folder somewhere at it will automatically pick them up and put them into Sysprep!Almost forgot - it needs AutoItX - it could be done without it but I got lazy. Just get it at www.autoitscript.comHope this is helpful to someone...DanBinScan.txt Link to comment Share on other sites More sharing options...
clavicle Posted April 9, 2005 Share Posted April 9, 2005 @sintaxasnNice work!Handy tool, may be I would use it. Link to comment Share on other sites More sharing options...
Bâshrat the Sneaky Posted April 9, 2005 Share Posted April 9, 2005 This one already existed, in batch file format.Check the Device Drivers forum, search for 'OemPnPDriversPath snippet'. Link to comment Share on other sites More sharing options...
sintaxasn Posted April 11, 2005 Author Share Posted April 11, 2005 Well, now it exists in VBS too Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now