Hi,
I have a problem with an INF file I made and I don’t understand
why it is failing. I use SetupCopyOEMinf to copy the INF file to
the windows\inf directory and then reboot. After the reboot I was
hoping that it would install my driver without prompting but it does
not do this. Will it always prompt when I try to install an unsigned
driver ?
Secondly, the installation only works if a copy of my driver exists
in the system32\drivers directory. Does anyone have an idea as
to what can cause this ? Do I still need a SourceFilesDisks/Names
when I use SetupCopyOEMInf btw or are these settings ignored by
this function.
Jos
--------------- Setupapi.log -------------------
[2002/03/28 17:48:52 2000.2]
#-199 Executing “G:\WINDOWS\system32\rundll32.exe” with command line: rundll32.exe newdev.dll,ClientSideInstall \.\pipe\PNP_Device_Install_Pipe_0.{D2BEC255-179C-4F22-8127-E4528BE2B55C}
#I060 Set selected driver.
#-019 Searching for hardware ID(s): pci\ven_10e8&dev_8212&subsys_00000000&rev_01,pci\ven_10e8&dev_8212&subsys_00000000,pci\ven_10e8&dev_8212&rev_01,pci\ven_10e8&dev_8212,pci\ven_10e8&dev_8212&cc_078000,pci\ven_10e8&dev_8212&cc_0780
#-018 Searching for compatible ID(s): pci\ven_10e8&cc_078000,pci\ven_10e8&cc_0780,pci\ven_10e8,pci\cc_078000,pci\cc_0780
#I022 Found “PCI\VEN_10E8&DEV_8212” in G:\WINDOWS\inf\pms_hc.inf; Device: “PMS Hardcopy Printer Driver”; Driver: “PMS Hardcopy Printer Driver”; Provider: “Philips Medical Systems”; Mfg: “Philips Medical Systems”; Section name: “PMS_HC_INSTALL”.
#I087 Driver node not trusted, rank changed from 0x00000003 to 0x0000c003.
#I023 Actual install section: [PMS_HC_INSTALL]. Rank: 0x0000c003. Effective driver date: 01/20/2002.
#-166 Device install function: DIF_SELECTBESTCOMPATDRV.
#I063 Selected driver installs from section [PMS_HC_INSTALL] in “g:\windows\inf\pms_hc.inf”.
#I320 Class GUID of device remains: {02334470-0FFB-11D6-BDE5-00B0D05FC4A4}.
#I060 Set selected driver.
#I058 Selected best compatible driver.
#I060 Set selected driver.
#-019 Searching for hardware ID(s): pci\ven_10e8&dev_8212&subsys_00000000&rev_01,pci\ven_10e8&dev_8212&subsys_00000000,pci\ven_10e8&dev_8212&rev_01,pci\ven_10e8&dev_8212,pci\ven_10e8&dev_8212&cc_078000,pci\ven_10e8&dev_8212&cc_0780
#-018 Searching for compatible ID(s): pci\ven_10e8&cc_078000,pci\ven_10e8&cc_0780,pci\ven_10e8,pci\cc_078000,pci\cc_0780
#I022 Found “PCI\VEN_10E8&DEV_8212” in G:\WINDOWS\inf\pms_hc.inf; Device: “PMS Hardcopy Printer Driver”; Driver: “PMS Hardcopy Printer Driver”; Provider: “Philips Medical Systems”; Mfg: “Philips Medical Systems”; Section name: “PMS_HC_INSTALL”.
#I087 Driver node not trusted, rank changed from 0x00000003 to 0x0000c003.
#I023 Actual install section: [PMS_HC_INSTALL]. Rank: 0x0000c003. Effective driver date: 01/20/2002.
#-166 Device install function: DIF_SELECTBESTCOMPATDRV.
#I063 Selected driver installs from section [PMS_HC_INSTALL] in “g:\windows\inf\pms_hc.inf”.
#I320 Class GUID of device remains: {02334470-0FFB-11D6-BDE5-00B0D05FC4A4}.
#I060 Set selected driver.
#I058 Selected best compatible driver.
#-124 Doing copy-only install of “PCI\VEN_10E8&DEV_8212&SUBSYS_00000000&REV_01\4&24B99E98&0&50F0”.
#W334 Failed to verify catalog when scanning file queue. Error 1168: Element not found.
#E360 An unsigned or incorrectly signed file “g:\windows\inf\pms_hc.inf” for driver “PMS Hardcopy Printer Driver” will be installed (Policy=Ignore). Error 1168: Element not found.
#E360 An unsigned or incorrectly signed file “g:\windows\inf\pms_hc.inf” for driver “PMS Hardcopy Printer Driver” will be installed (Policy=Ignore). Error 1168: Element not found.
#-166 Device install function: DIF_REGISTER_COINSTALLERS.
#I056 Coinstallers registered.
#-166 Device install function: DIF_INSTALLINTERFACES.
#-011 Installing section [PMS_HC_INSTALL.Interfaces] from “g:\windows\inf\pms_hc.inf”.
#I054 Interfaces installed.
#-166 Device install function: DIF_INSTALLDEVICE.
#I123 Doing full install of “PCI\VEN_10E8&DEV_8212&SUBSYS_00000000&REV_01\4&24B99E98&0&50F0”.
#-035 Processing service Add/Delete section [PMS_HC_INSTALL.Services].
#E339 Add Service: Binary “G:\WINDOWS\System32\DRIVERS\pms_hc.sys” for service “pms_hc” is not present.
#E032 Error 0xe0000217: A service installation section in this INF is invalid.
#E275 Error while installing services. Error 0xe0000217: A service installation section in this INF is invalid.
#E122 Device install failed. Error 0xe0000217: A service installation section in this INF is invalid.
#E157 Default installer failed. Error 0xe0000217: A service installation section in this INF is invalid.
#I060 Set selected driver.
#I125 Installing NULL driver for “PCI\VEN_10E8&DEV_8212&SUBSYS_00000000&REV_01\4&24B99E98&0&50F0”.
#I121 Device install of “PCI\VEN_10E8&DEV_8212&SUBSYS_00000000&REV_01\4&24B99E98&0&50F0” finished successfully.
Jos,
In XP, if the driver is unsigned, then the Found New Hardware Wizard will always be invoked. The following is from the DDK:
Windows DDK
- Device Installation
- Design Guide
- Device Installation Overview
- How Setup Selects Drivers
It says: “For Windows XP and later, some driver packages are considered to be “trusted” while others are “untrusted”. All signed driver packages are trusted, and all unsigned driver packages are untrusted”.
Then: “If Setup determines that a driver package for an NT-based system is untrusted, it raises the driver package’s rank to a value within the appropriate untrusted rank range”.
And eventually: “it starts the Found New Hardware wizard if the driver rank is only a compatible ID match or if its rank is within the untrusted ranges”.
On your second question: you should copy your software to some private directory - like in Program Files\MyCompany\MyProduct and then use SetupCopyOEMInf to copy the INF to the system INF folder. You should have SourceFilesDisks, etc, as if your driver was on your shipping media.
Bryan S. Burgin
xxxxx@microsoft.com
This posting is provided “AS IS” with no warranties, and confers no rights
-----Original Message-----
From: Jos Scherders [mailto:xxxxx@home.nl]
Sent: Thursday, March 28, 2002 1:12 PM
To: NT Developers Interest List
Subject: [ntdev] Silent install
Hi,
?
I have a problem with an INF file I made and I don’t understand
why it is failing. I use SetupCopyOEMinf to copy the INF file to
the windows\inf directory and then reboot. After the reboot I was
hoping that it would install my driver without prompting but it does
not do this. Will it always prompt when I try to install an unsigned
driver ?
?
Secondly, the installation only works if?a copy of my driver exists
in the system32\drivers directory. Does anyone have an idea as
to what can cause this ? Do I still need a SourceFilesDisks/Names
when I use SetupCopyOEMInf btw or are these settings ignored by
this function.
?
Jos
?
--------------- Setupapi.log -------------------
[2002/03/28 17:48:52 2000.2]
#-199 Executing “G:\WINDOWS\system32\rundll32.exe” with command line: rundll32.exe newdev.dll,ClientSideInstall \.\pipe\PNP_Device_Install_Pipe_0.{D2BEC255-179C-4F22-8127-E4528BE2B55C}
#I060 Set selected driver.
#-019 Searching for hardware ID(s): pci\ven_10e8&dev_8212&subsys_00000000&rev_01,pci\ven_10e8&dev_8212&subsys_00000000,pci\ven_10e8&dev_8212&rev_01,pci\ven_10e8&dev_8212,pci\ven_10e8&dev_8212&cc_078000,pci\ven_10e8&dev_8212&cc_0780
#-018 Searching for compatible ID(s): pci\ven_10e8&cc_078000,pci\ven_10e8&cc_0780,pci\ven_10e8,pci\cc_078000,pci\cc_0780
#I022 Found “PCI\VEN_10E8&DEV_8212” in G:\WINDOWS\inf\pms_hc.inf; Device: “PMS Hardcopy Printer Driver”; Driver: “PMS Hardcopy Printer Driver”; Provider: “Philips Medical Systems”; Mfg: “Philips Medical Systems”; Section name: “PMS_HC_INSTALL”.
#I087 Driver node not trusted, rank changed from 0x00000003 to 0x0000c003.
#I023 Actual install section: [PMS_HC_INSTALL]. Rank: 0x0000c003. Effective driver date: 01/20/2002.
#-166 Device install function: DIF_SELECTBESTCOMPATDRV.
#I063 Selected driver installs from section [PMS_HC_INSTALL] in “g:\windows\inf\pms_hc.inf”.
#I320 Class GUID of device remains: {02334470-0FFB-11D6-BDE5-00B0D05FC4A4}.
#I060 Set selected driver.
#I058 Selected best compatible driver.
#I060 Set selected driver.
#-019 Searching for hardware ID(s): pci\ven_10e8&dev_8212&subsys_00000000&rev_01,pci\ven_10e8&dev_8212&subsys_00000000,pci\ven_10e8&dev_8212&rev_01,pci\ven_10e8&dev_8212,pci\ven_10e8&dev_8212&cc_078000,pci\ven_10e8&dev_8212&cc_0780
#-018 Searching for compatible ID(s): pci\ven_10e8&cc_078000,pci\ven_10e8&cc_0780,pci\ven_10e8,pci\cc_078000,pci\cc_0780
#I022 Found “PCI\VEN_10E8&DEV_8212” in G:\WINDOWS\inf\pms_hc.inf; Device: “PMS Hardcopy Printer Driver”; Driver: “PMS Hardcopy Printer Driver”; Provider: “Philips Medical Systems”; Mfg: “Philips Medical Systems”; Section name: “PMS_HC_INSTALL”.
#I087 Driver node not trusted, rank changed from 0x00000003 to 0x0000c003.
#I023 Actual install section: [PMS_HC_INSTALL]. Rank: 0x0000c003. Effective driver date: 01/20/2002.
#-166 Device install function: DIF_SELECTBESTCOMPATDRV.
#I063 Selected driver installs from section [PMS_HC_INSTALL] in “g:\windows\inf\pms_hc.inf”.
#I320 Class GUID of device remains: {02334470-0FFB-11D6-BDE5-00B0D05FC4A4}.
#I060 Set selected driver.
#I058 Selected best compatible driver.
#-124 Doing copy-only install of “PCI\VEN_10E8&DEV_8212&SUBSYS_00000000&REV_01\4&24B99E98&0&50F0”.
#W334 Failed to verify catalog when scanning file queue. Error 1168: Element not found.
#E360 An unsigned or incorrectly signed file “g:\windows\inf\pms_hc.inf” for driver “PMS Hardcopy Printer Driver” will be installed (Policy=Ignore). Error 1168: Element not found.
#E360 An unsigned or incorrectly signed file “g:\windows\inf\pms_hc.inf” for driver “PMS Hardcopy Printer Driver” will be installed (Policy=Ignore). Error 1168: Element not found.
#-166 Device install function: DIF_REGISTER_COINSTALLERS.
#I056 Coinstallers registered.
#-166 Device install function: DIF_INSTALLINTERFACES.
#-011 Installing section [PMS_HC_INSTALL.Interfaces] from “g:\windows\inf\pms_hc.inf”.
#I054 Interfaces installed.
#-166 Device install function: DIF_INSTALLDEVICE.
#I123 Doing full install of “PCI\VEN_10E8&DEV_8212&SUBSYS_00000000&REV_01\4&24B99E98&0&50F0”.
#-035 Processing service Add/Delete section [PMS_HC_INSTALL.Services].
#E339 Add Service: Binary “G:\WINDOWS\System32\DRIVERS\pms_hc.sys” for service “pms_hc” is not present.
#E032 Error 0xe0000217: A service installation section in this INF is invalid.
#E275 Error while installing services. Error 0xe0000217: A service installation section in this INF is invalid.
#E122 Device install failed. Error 0xe0000217: A service installation section in this INF is invalid.
#E157 Default installer failed. Error 0xe0000217: A service installation section in this INF is invalid.
#I060 Set selected driver.
#I125 Installing NULL driver for “PCI\VEN_10E8&DEV_8212&SUBSYS_00000000&REV_01\4&24B99E98&0&50F0”.
#I121 Device install of “PCI\VEN_10E8&DEV_8212&SUBSYS_00000000&REV_01\4&24B99E98&0&50F0” finished successfully.
You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to %%email.unsub%%
Hi,
In XP, if the driver is unsigned, then the Found New Hardware Wizard will
always be invoked. The following is from t>he DDK:
Yes, I figured that, thx.
On your second question: you should copy your software to some private
directory - like in Program >Files\MyCompany\MyProduct and then use
SetupCopyOEMInf to copy the INF to the system INF folder. You >should have
SourceFilesDisks, etc, as if your driver was on your shipping media.
I did that yes. I followed the topic “Pre-installing Driver Files” of the
DDK. But for some bizare reason
it expects my driver to exist in system32\drivers.
jos.
When you call SetupCopyOEMInf() you want the 2nd parameter to be a NULL and
the third to be SPOST_PATH (ie. SetupCopyOEMInf (SourceInfPath, NULL,
SPOST_PATH, NULL, DestinationInfFileName, sizeof (DestinationInfFileName),
NULL, NULL)
The path that is used for the driver file will be the same as the source
location of the inf file. I believe that you can specify a path as the 2nd
parameter to point where you want your driver to come from but I haven’t
given that a try.
If you still get prompted for the system32\drivers directory then you
probably have something setup incorrectly in the inf file.
-----Original Message-----
From: Jos Scherders [mailto:xxxxx@home.nl]
Sent: Thursday, March 28, 2002 5:01 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Silent install
Hi,
>In XP, if the driver is unsigned, then the Found New
Hardware Wizard will
always be invoked. The following is from t>he DDK:
Yes, I figured that, thx.
>On your second question: you should copy your software to
some private
directory - like in Program >Files\MyCompany\MyProduct and then use
SetupCopyOEMInf to copy the INF to the system INF folder.
You >should have
SourceFilesDisks, etc, as if your driver was on your shipping media.
I did that yes. I followed the topic “Pre-installing Driver
Files” of the
DDK. But for some bizare reason
it expects my driver to exist in system32\drivers.
jos.
You are currently subscribed to ntdev as: xxxxx@cognex.com
To unsubscribe send a blank email to %%email.unsub%%