IPB

Google Frontpage Forums Unattended CD/DVD Guide
 Forum Rules Unattended CD/DVD Guide Homepage · MSFN Forum Rules
> Howto install unsigned drivers without prompts
soul
post Sep 26 2004, 12:39 PM
Post #1





Group: Members
Posts: 4
Joined: 19-July 04
Member No.: 24914



I've spent the past few days trying to figure out HOW to make XP with SP2 install unsigned drivers silently. Changing DriverSigningPolicy in winnt.sif still warned that the driver wasn't signed. Changing Driver Signing registry entries still warned that the driver wasn't signed. Nothing I tried would get rid of the prompt, so I finally decided to just create an AutoIt script to "Continue anyway". I've attached the script, the compiled exe, grep.exe and devcon.exe.

All you have to do to use this method (I'm sure there are other methods, but this is how I use it):
  • Download the attached .rar
  • Extract devcon.exe and grep.exe to $OEM$\$$\system32, DriverInstall.exe to $OEM$\$1\Drivers
  • In RunOnceEx.cmd, add driver checks such as:
CODE
devcon hwids =Display | grep Name: | grep -i GeForce > NUL
IF NOT ERRORLEVEL 1 (
)
  • Inside the IF ( ) block, invoke DriverInstaller with the relevant switches (for information about the switches that DriverInstaller supports, read about Commands for DevCon Operations), such as:
CODE
%systemdrive%\Drivers\DriverInstall.exe update %systemdrive%\Drivers\002_graphics\NVIDIA\2KXP_INF\NV_OMEGA_DISP.INF PCI\VEN_10DE


A brief breakdown about the DriverInstaller line above:
%systemdrive%\Drivers\DriverInstall.exe: The path to DriverInstaller.exe
update: Update the driver (as opposed to install, disable, enable, etc)
%systemdrive%\Drivers\002_graphics\NVIDIA\2KXP_INF\NV_OMEGA_DISP.INF: Path to the .inf for the drivers you wish to update
PCI\VEN_10DE: The hardware vendor ID. You must get this from inside the driver's .inf

Completed, my RunOnceEx.cmd looks something like:
CODE
devcon hwids =Display | grep Name: | grep -i GeForce > NUL
IF NOT ERRORLEVEL 1 (
    REG ADD %KEY%\325 /VE /D "NVIDIA ForceWare 56.72 video drivers" /f
    REG ADD %KEY%\325 /V 1 /D "%systemdrive%\Drivers\DriverInstall.exe update %systemdrive%\Drivers\002_graphics\NVIDIA\2KXP_INF\NV_OMEGA_DISP.INF PCI\VEN_10DE" /f
)


I've tested this to work with signed drivers, unsigned drivers, drivers with multiple prompts, and it has worked each time.

Any questions/comments, feel free to let me know. Hope this helps someone as much as it helped me.
Attached File(s)
Attached File  DriverInstall.rar ( 135.74K ) Number of downloads: 442
 
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
adamcamp
post Apr 24 2009, 05:55 AM
Post #2





Group: Members
Posts: 2
Joined: 23-March 09
Member No.: 237325
OS: XP Pro x86
Country Flag


Never mind, solved it! Turns out in the most recent version of AutoIt (Since 3.0) the Opt RunErrorsFatal is gone. Take out that line, and it works beautifully.
Go to the top of the page
 
+Quote Post

Posts in this topic


Google Frontpage Forums Unattended CD/DVD Guide

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 




Lo-Fi Version Time is now: 22nd November 2009 - 05:29 PM
All trademarks mentioned on this page are the property of their respective owners
MSFN is not affiliated with Microsoft
Copyright © 2001-2009 msfn.org
Privacy Policy