MSFN Forum: Howto install unsigned drivers without prompts - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Howto install unsigned drivers without prompts Rate Topic: -----

#1 User is offline   soul 

  • Group: Members
  • Posts: 4
  • Joined: 19-July 04

Posted 26 September 2004 - 12:39 PM

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:
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:
%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:
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)




#2 User is offline   Ducky_ace 

  • Newbie
  • Group: Members
  • Posts: 19
  • Joined: 19-September 04

Posted 27 September 2004 - 03:30 AM

Are u sure u've put

DriverSigningPolicy=Ignore

under the [unattended] tab

in winnt.sif ?

#3 User is offline   Ducky_ace 

  • Newbie
  • Group: Members
  • Posts: 19
  • Joined: 19-September 04

Posted 27 September 2004 - 03:32 AM

Ducky_ace, on Sep 27 2004, 03:30 AM, said:

Are u sure u've put

DriverSigningPolicy=Ignore

under the [unattended] tab

in winnt.sif ?

NVM...

#4 User is offline   Bilou_Gateux 

  • Powered by Windows Embedded
  • PipPipPipPipPip
  • Group: Members
  • Posts: 766
  • Joined: 03-January 04

Posted 30 September 2004 - 03:38 AM

WINNT.SIF for Windows 2000
[Unattended]
UnattendMode=FullUnattended
DriverSigningPolicy=Ignore
NtUpgrade=No
OemFilesPath  = "..\$OEM$" 
OemPnPDriversPath = "PnPDrvrs\Display;PnPDrvrs\hdc;PnPDrvrs\Media;PnPDrvrs\Net;PnPDrvrs\System;PnPDrvrs\USB;PnPDrvrs\Modem;PnPDrvrs\Misc1;PnPDrvrs\Misc2"
OemPreinstall=Yes
OemSkipEula=Yes
OverwriteOemFilesOnUpgrade=No
TargetPath=\WINNT
Win9xUpgrade=No


The AutoIt script need some strings modification for use with localized versions of Windows or different version (2000 Professional)

#5 User is offline   tguy 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 698
  • Joined: 19-May 04

Posted 01 October 2004 - 02:39 PM

Make sure your WINNT.SIF file includes the following two lines in the [Unattended] section

DriverSigningPolicy=Ignore
NonDriverSigningPolicy=Ignore

tguy

#6 User is offline   supahfly 

  • Group: Members
  • Posts: 7
  • Joined: 02-October 04

Posted 02 October 2004 - 07:16 AM

nondriversigningpolicy ??
I havent seen that around somewhere
and in the docs of m$ it only mentions driversigningpolicy ...

#7 User is offline   supahfly 

  • Group: Members
  • Posts: 7
  • Joined: 02-October 04

  Posted 02 October 2004 - 07:17 AM

anyways has anyone else experienced these problems ?

#8 User is offline   tguy 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 698
  • Joined: 19-May 04

Posted 08 November 2004 - 04:53 PM

I found the NonDriverSigningPolicy 'switch' here in the Forums, worked for me, good luck....


tguy

#9 User is offline   Bilou_Gateux 

  • Powered by Windows Embedded
  • PipPipPipPipPip
  • Group: Members
  • Posts: 766
  • Joined: 03-January 04

Posted 09 November 2004 - 09:55 AM

We can use the Windows findstr.exe utility rather than grep.exe
devcon hwids =display | findstr Name: |findstr /i NVidia


search for the Vendor ID (Display class device installed with default NVidia Windows CD outdated drivers)
set VEN=VEN_10DE
set class=Display
devcon listclass %class% | findstr /i /c:%VEN%

Quote

PCI\VEN_10DE&DEV_017A&SUBSYS_014610DE&REV_A3\4&3A321F38&0&58F0: NVIDIA Quadro NVS (Microsoft Corporation)
search for the Vendor ID (Display class device with no drivers found under "Other devices" --> "Video controller" in device manager)
set VEN=VEN_8086
set class=Unknown
devcon listclass %class% | findstr /i "Video Controller" | findstr /i /c:%VEN%

Quote

PCI\VEN_8086&DEV_2572&SUBSYS_101B1734&REV_02\3&61AAA01&0&10 : Video Controller


How to find the Vendor ID:
PCI Vendor and Device Lists

A variety of tools are provided in \Tools of the Windows 2000 System Preparation Tool, Version 1.1 package, including:
  • Sysprep.exe (v1.1)
  • Setupcl.exe
  • Pnpids.exe
    that assists in identifying the Plug and Play ID used by Windows to install the proper device.

This post has been edited by Bilou_Gateux: 18 September 2005 - 02:39 AM


#10 User is offline   npadmana 

  • Group: Members
  • Posts: 2
  • Joined: 02-December 04

Posted 02 December 2004 - 05:48 AM

Can i do this in Windows2003 Servers? This is only for internal testing purpose.

Where to look for the DriverSigning policy.

Thanks,
/N

#11 User is offline   tguy 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 698
  • Joined: 19-May 04

Posted 23 December 2004 - 11:02 AM

You can find information on the DriverSigningPolicy on the MS MSDN site.

Also in the unattend.doc or ref.chm help files.

Did you try disabling the System File Checker?

#12 User is offline   adamcamp 

  • Group: Members
  • Posts: 2
  • Joined: 23-March 09

Posted 24 April 2009 - 04:40 AM

Hi, I've tried using your script, and it works beautifully! Except in situations where devcon asks if you want to overwrite old files, where it will pause, waiting for input.

I decided to edit the script, adding to the If...Then...Else block, to take this new prompt into account. Upon running the script, I get:

"Line -1:

Error: Unknown option or bad parameter specified."

I thought this was a problem with my edits, so I recompiled the .exe from your original DriverInstall.au3 file that you included, to get the same error!

So I was wondering, what were the differences between that file and the one you originally compiled from? Or am I just having problems on my machine?

Thanks in Advance,

Adam

#13 User is offline   adamcamp 

  • Group: Members
  • Posts: 2
  • Joined: 23-March 09

Posted 24 April 2009 - 05:55 AM

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.

#14 User is offline   dejavoo 

  • Newbie
  • Group: Members
  • Posts: 26
  • Joined: 30-March 09

Posted 11 May 2009 - 05:59 AM

View Postadamcamp, on Apr 24 2009, 12:55 PM, said:

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.

Have got a problem with my hp dv6000 audio and video drivers.The one's i downloaded from hp site appear not to work with my system.can please help out.thanks..............................

Share this topic:


Page 1 of 1
  • 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