Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Automate driver selection windows 7

07 Aug 2017   #1
Smoblikat

W7X64 Pro
 
 
Automate driver selection windows 7

Hello, im creating an image for the computers at work and Ive run into an annoying issue. This is a universal image, Wn7X64 Pro, and im trying to automagically install the drivers for the graphics card. Sounds simple, right? Well, the new 7th gen processors dont support windows 7, so I made a custom driver .inf for it to install under windows 7. That part works fine, the drivers install and I get intel HD620 graphics as an option. Then I call dpinst from my unattend file and have it install the drivers for the GPU during startup with the /lm switch enabled (since its a custom driver, its unsigned and M$ doesnt like that for some reason). All of that works great, the driver installs during first startup, and I have a completely unattended install. The issue arises when I boot into windows for the first time. The driver is technically installed, and it is available, but windows doesnt automatically select it for use. I have to right click the device in device manager, select update driver etc.. and I see the custom one right there in the list of currently installed drivers, right under "Standard VGA graphics adapter". All I do is select it an hit install, and it works perfectly. Does anyone know of a way to force windows to select that specific driver to use over the default one? I cant help but imagine this is all related to it being unsigned and therefore "worse" than the default one, so im experimenting with putting
<forceIfDriverIsNotBetter/>
in my dpinst.xml file. Ill let you guys know if that solves it, but if anyone has any ideas please oh please share them with me.


My System SpecsSystem Spec
.
07 Aug 2017   #2
Smoblikat

W7X64 Pro
 
 

Using that switch didnt seem to help, I still see both the HD620 and standard VGA graphics adapter options in the driver selection screen.
My System SpecsSystem Spec
07 Aug 2017   #3
Smoblikat

W7X64 Pro
 
 

I posted this issue on another forum too, but here is an image of what im dealing with.

Link to other forum post - Force windows 7 to enable driver........ - AnandTech Forums

[IMG]https://image.*******/hFzWKv/Driver.jpg[/IMG]
My System SpecsSystem Spec
.

07 Aug 2017   #4
Megahertz07

Windows 7 HP 64
 
 

My System SpecsSystem Spec
08 Aug 2017   #5
Smoblikat

W7X64 Pro
 
 

Quote   Quote: Originally Posted by Megahertz07 View Post

That driver doesnt support windows 7 on 7th generation processors. Im basing my custom driver off of that one, but since I have to modify it to make it work with W7, it wont happily install.
My System SpecsSystem Spec
08 Aug 2017   #6
torchwood

W7 home premium 32bit/W7HP 64bit/w10 tp insider ring
 
 

Hi Smoblikat,

That screenshot tells me that Windows WILL NOT automatically install it
Within any setup a digital signature is required by default.

Your going to have DIgital enforcement set to OFF on your sysprep
bcdedit /set testsigning off

Roy
My System SpecsSystem Spec
08 Aug 2017   #7
torchwood

W7 home premium 32bit/W7HP 64bit/w10 tp insider ring
 
 

NOTE

reset it after install, via GPO

Roy
My System SpecsSystem Spec
08 Aug 2017   #8
Smoblikat

W7X64 Pro
 
 

Quote   Quote: Originally Posted by torchwood View Post
NOTE

reset it after install, via GPO

Roy
Would I be able to re-enable testsigning by putting it into my setupcomplete.cmd? Or is GPO recommended for a specific reason.
My System SpecsSystem Spec
08 Aug 2017   #9
Megahertz07

Windows 7 HP 64
 
 

My System SpecsSystem Spec
09 Aug 2017   #10
Smoblikat

W7X64 Pro
 
 

Quote   Quote: Originally Posted by Megahertz07 View Post

If you pause at 5:20, youll see the exact problem im having. I made a working driver for windows 7, in no way do I need any help getting the driver created or loaded. It still prompts me to see if I want to use the selected driver, im going to try and see if enabling testmode will allow it to automatically select the sustom driver to use, if that doesnt work, then this whole thing might not be possible.
My System SpecsSystem Spec
Reply

 Automate driver selection windows 7




Thread Tools




Similar help and support threads
Thread Forum
Does anyone have a working script for windows update? to automate it?
Hello all, For platform: Windows 7 Professional x64 I need a way to automate windows update with a .vbs script if possible. I'm not familiar with power shell so I prefer a .vbs script. I have searched and searched but have not been able to find a reliable .vbs script. I need it not to...
Windows Updates & Activation
Automate windows update on new machine
Has anyone have a way to automate the window 7 updates on a new machine. Maybe a script that will run at boot time to run updates, install updates and reboot if necessary. And keep going until the system is up to date. I have a bunch of windows seven machines to build and don't want to babysit them...
Windows Updates & Activation
How to completely Automate the Windows Repair tool
As we all know if windows fails to boot due to some sort of error it will boot into a repair utility. I would like to find out if there is anyway to automate that process so that no one has to actually be sitting in front of the PC/VM and select the startup repair tool and click "finish" when its...
Performance & Maintenance
Someone automate this for me?
Hi there, wondering if this is possible to create as a .bat file or something here is the code: I can type it in with CMD but I'm running this on many computer so I want it to be faster.
General Discussion
Driver selection for your Hardware devices.
What's this tutorial about ... This is an intermediate-high level troubleshooting and selection of drivers for your hardware devices. If you are not sure of the correct drivers to installed for your devices or one that have been installed but does not seem to work too well, then read the...
Tutorials


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 14:41.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App