trying to avoid the "New Hardware Found" dialog

I'm trying to avoid the "New Hardware Found" dialog, but with no success.
Such problem was here http://www.osronline.com/showThread.cfm?link=62208 and
here
http://www.osronline.com/showThread.cfm?link=61665

This is a virtual SCSI miniport that uses the virtual target (processor) for
fast requests completion.
I created dummy section for dummy processor, but "New Hardware Found" popups
anyway.

Also I tried to create separate "fake.inf" (and include=fake.inf in
PhantoCD.inf), but with no success too.

What I'm doing wrong?

--PhantoCD.inf---------------
[Version]
Signature = "$Windows NT$"
Provider = %MADE_BY%
ClassGUID = {4D36E97B-E325-11CE-BFC1-08002BE10318}
Class = SCSIAdapter
DriverVer = 30/08/2006,1.2

[SourceDisksNames]
1 = %DISKNAME%

[SourceDisksFiles]
PhantoCD.sys = 1

[DestinationDirs]
DefaultDestDir = 12 ; system32/drivers

[Manufacturer]
%MADE_BY% = Models

[Models]
%ADAPTERNAME% = PhantoCD, root\PhantoCD ; hardware id
%DUMMY_NAME% = NOTHING, SCSI\ProcessorPhantoCD_Virtual_Proc___0003

[NOTHING]
AddReg=NOTHING_AddReg

[NOTHING_AddReg]
;Dummy AddReg section

[NOTHING.Services]
AddService = , 0x00000002 ; null service install

[PhantoCD]
CopyFiles = @PhantoCD.sys
LogConfig = MiniGun.LogConfig

[MiniGun.LogConfig]
ConfigPriority = DESIRED

[PhantoCD.Services]
AddService = PhantoCD, 0x00000002, PhanService

[PhanService]
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 0 ; SERVICE_ERROR_IGNORE
LoadOrderGroup = SCSI Miniport
ServiceBinary = %12%\PhantoCD.sys
AddReg = PhantoCD_AddReg

PhantoCD.inf was truncated.

–PhantoCD.inf- (full)--------------
[Version]
Signature = “$Windows NT$”
Provider = %MADE_BY%
ClassGUID = {4D36E97B-E325-11CE-BFC1-08002BE10318}
Class = SCSIAdapter
DriverVer = 30/08/2006,1.2.0.0

[SourceDisksNames]
1 = %DISKNAME%

[SourceDisksFiles]
PhantoCD.sys = 1

[DestinationDirs]
DefaultDestDir = 12 ; system32/drivers

[Manufacturer]
%MADE_BY% = Models

[Models]
%ADAPTERNAME% = PhantoCD, root\PhantoCD ; hardware id
%DUMMY_NAME% = NOTHING, SCSI\ProcessorPhantoCD_Virtual_Proc___0003

[NOTHING]
AddReg=NOTHING_AddReg

[NOTHING_AddReg]
;Dummy AddReg section

[NOTHING.Services]
AddService = , 0x00000002 ; null service install

[PhantoCD]
CopyFiles = @PhantoCD.sys
LogConfig = MiniGun.LogConfig

[MiniGun.LogConfig]
ConfigPriority = DESIRED

[PhantoCD.Services]
AddService = PhantoCD, 0x00000002, PhanService

[PhanService]
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 0 ; SERVICE_ERROR_IGNORE
LoadOrderGroup = SCSI Miniport
ServiceBinary = %12%\PhantoCD.sys
AddReg = PhantoCD_AddReg

[PhantoCD_AddReg]
HKR,“Parameters\PnpInterface”, “1”, 0x00010001, 0x00000001

[Strings]
DISKNAME = “Install Disk”
MADE_BY = “Oleg”
ADAPTERNAME = “PhantoCD Adapter”
DUMMY_NAME = “PhantoCD Dummy Processor”


It must be related to the hardware ID part of your inf.

Turn up setupapi logging and see what its reporting.

Turning it on..

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup]
"LogLevel"=dword:8000FF00

Restoring it.. (or remember what was there if different)

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup]
"LogLevel"=dword:00000000

BR,

Rob Linegar
Software Engineer
Data Encryption Systems Limited
www.des.co.uk | www.deslock.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Oleg Butko
Sent: 08 September 2006 14:20
To: Windows System Software Devs Interest List
Subject: [ntdev] trying to avoid the "New Hardware Found" dialog

I'm trying to avoid the "New Hardware Found" dialog, but with no
success.
Such problem was here http://www.osronline.com/showThread.cfm?link=62208
and
here
http://www.osronline.com/showThread.cfm?link=61665

This is a virtual SCSI miniport that uses the virtual target (processor)
for
fast requests completion.
I created dummy section for dummy processor, but "New Hardware Found"
popups
anyway.

Also I tried to create separate "fake.inf" (and include=fake.inf in
PhantoCD.inf), but with no success too.

What I'm doing wrong?

--PhantoCD.inf---------------
[Version]
Signature = "$Windows NT$"
Provider = %MADE_BY%
ClassGUID = {4D36E97B-E325-11CE-BFC1-08002BE10318}
Class = SCSIAdapter
DriverVer = 30/08/2006,1.2

[SourceDisksNames]
1 = %DISKNAME%

[SourceDisksFiles]
PhantoCD.sys = 1

[DestinationDirs]
DefaultDestDir = 12 ; system32/drivers

[Manufacturer]
%MADE_BY% = Models

[Models]
%ADAPTERNAME% = PhantoCD, root\PhantoCD ; hardware id
%DUMMY_NAME% = NOTHING, SCSI\ProcessorPhantoCD_Virtual_Proc___0003

[NOTHING]
AddReg=NOTHING_AddReg

[NOTHING_AddReg]
;Dummy AddReg section

[NOTHING.Services]
AddService = , 0x00000002 ; null service install

[PhantoCD]
CopyFiles = @PhantoCD.sys
LogConfig = MiniGun.LogConfig

[MiniGun.LogConfig]
ConfigPriority = DESIRED

[PhantoCD.Services]
AddService = PhantoCD, 0x00000002, PhanService

[PhanService]
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 0 ; SERVICE_ERROR_IGNORE
LoadOrderGroup = SCSI Miniport
ServiceBinary = %12%\PhantoCD.sys
AddReg = PhantoCD_AddReg


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at

On Windows XP and later OSes, “Add New Hardware Wizard” will always show up unless the driver and INF file has WHQL digital signature and you perform a pre-install of the INF.

Have you looked at setupapi.log to verify whether it's finding a match
for your device in your INF and whether it detects any other problems.

For example, your INF doesn't list a catalog, so I'm assuming that you
haven't signed it.

Also have you run chkinf on your INF to verify whether it's valid?

-p

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Oleg Butko
Sent: Friday, September 08, 2006 6:20 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] trying to avoid the "New Hardware Found" dialog

I'm trying to avoid the "New Hardware Found" dialog, but with no
success.
Such problem was here http://www.osronline.com/showThread.cfm?link=62208
and here
http://www.osronline.com/showThread.cfm?link=61665

This is a virtual SCSI miniport that uses the virtual target (processor)
for fast requests completion.
I created dummy section for dummy processor, but "New Hardware Found"
popups anyway.

Also I tried to create separate "fake.inf" (and include=fake.inf in
PhantoCD.inf), but with no success too.

What I'm doing wrong?

--PhantoCD.inf---------------
[Version]
Signature = "$Windows NT$"
Provider = %MADE_BY%
ClassGUID = {4D36E97B-E325-11CE-BFC1-08002BE10318}
Class = SCSIAdapter
DriverVer = 30/08/2006,1.2

[SourceDisksNames]
1 = %DISKNAME%

[SourceDisksFiles]
PhantoCD.sys = 1

[DestinationDirs]
DefaultDestDir = 12 ; system32/drivers

[Manufacturer]
%MADE_BY% = Models

[Models]
%ADAPTERNAME% = PhantoCD, root\PhantoCD ; hardware id %DUMMY_NAME% =
NOTHING, SCSI\ProcessorPhantoCD_Virtual_Proc___0003

[NOTHING]
AddReg=NOTHING_AddReg

[NOTHING_AddReg]
;Dummy AddReg section

[NOTHING.Services]
AddService = , 0x00000002 ; null service install

[PhantoCD]
CopyFiles = @PhantoCD.sys
LogConfig = MiniGun.LogConfig

[MiniGun.LogConfig]
ConfigPriority = DESIRED

[PhantoCD.Services]
AddService = PhantoCD, 0x00000002, PhanService

[PhanService]
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 0 ; SERVICE_ERROR_IGNORE
LoadOrderGroup = SCSI Miniport
ServiceBinary = %12%\PhantoCD.sys
AddReg = PhantoCD_AddReg


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup]
“LogLevel”=dword:48005f00

Driver|INF is not signed.
Is it possible to avoid “new hardware wizard” for unsigned driver|INF? for
w2k, wxp,w2k3?

I don’t see any problem with finding hardware ID in setupapi.log

[2006/09/08 19:49:47 1140.10 Driver Install]: @ 19:49:48.046 #I022 Found
“SCSI\ProcessorPhantoCD_Virtual_Proc___” × C:\WINXP\inf\oem30.inf; Device:
“PhantoCD Dummy Processor”; Driver: “PhantoCD Dummy Processor”; Provider:
“Oleg”; Manufacturer: “Oleg”; Section: “NODRV”

May be problem here:
“No trust to driver node, rank changed from 0x00000001 to 0x0000c001”

chkinf:
Total Errors: 1
Total Warnings: 1
Errors:
Line 1: (E22.1.1081) Directive: CatalogFile required (and must not be blank)
in section [Version] for WHQL digital signature.
Warnings:
Line 0: (W22.1.2212) No Copyright information found.

Oleg Butko wrote:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup]
“LogLevel”=dword:48005f00

Driver|INF is not signed.
Is it possible to avoid “new hardware wizard” for unsigned driver|INF? for
w2k, wxp,w2k3?

Not legitimately, no. The whole POINT is to make sure drivers don’t get
installed without the user knowing about it. You can turn off the
signature-checking on your computer in the system control panel, but
you’ll still get a New Hardware Wizard if the system encounters a PnP
identifier it hasn’t seen before.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

But for any number of CDROM targets there is no New Hardware Wizard appears
while installing.
Only if I make special target of processor type.
Why the confirmation is not enough (that the driver is unsigned)?

What is the non legitimately way to avoid New Hardware Wizard for such case
(several CDROM targets and one special target of processor type)?