Driver is Not getting Installed on Windows 7 64bit

Hello All,

I am facing a strange problem as:

*. My USB function driver for Windows 64 bit is not getting installed with Test Certificate on some windows PC. The only difference I could find out the
they (some Windows PC/better say developer windows 7 PC) have security check software installed like PEACY etc.
*. Same driver is getting installed on same configuration PC as above mention but for Windows XP 32 bit and Windows XP 64 bit.

Please share your idea if any, related to the PC settings in Windows 7 64 bit like disabling of the mass storage settings, issue with Local Admin or any specific setting required …

Thanks
Ravi Rathore

Did you check setupapi logs?

Kris

Ravi Rathore (RBEI/EST2) wrote:

*. My USB function driver for Windows 64 bit is not getting installed with Test Certificate on some windows PC. The only difference I could find out the they (some Windows PC/better say developer windows 7 PC) have security check software installed like PEACY etc.

A test certificate is not enough to have a driver load on a 64-bit
system. The driver will be INSTALLED, but it will not be allowed to
load. For that, you need a genuine Class 3 Code Signing Certificate
from either Verisign or GlobalSign.


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

Hello Tim,

So With the Test Certificate I will not be able to Test my driver on 64 bit Windows 7. It is very hard to believe.

Is there Any way I can test my driver on Window 7 64 bit without purchasing certificate.

Thanks
Ravi Rathore

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Tim Roberts
Sent: Friday, 10. June 2011 10:15 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Driver is Not getting Installed on Windows 7 64bit

Ravi Rathore (RBEI/EST2) wrote:

*. My USB function driver for Windows 64 bit is not getting installed with Test Certificate on some windows PC. The only difference I could find out the they (some Windows PC/better say developer windows 7 PC) have security check software installed like PEACY etc.

A test certificate is not enough to have a driver load on a 64-bit
system. The driver will be INSTALLED, but it will not be allowed to
load. For that, you need a genuine Class 3 Code Signing Certificate
from either Verisign or GlobalSign.


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


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

During system boot, press F8 and disable signature enforcement.

2011/6/13 Ravi Rathore (RBEI/EST2) <ravi.rathore>

> Hello Tim,
>
> So With the Test Certificate I will not be able to Test my driver on 64 bit
> Windows 7. It is very hard to believe.
>
> Is there Any way I can test my driver on Window 7 64 bit without purchasing
> certificate.
>
> Thanks
> Ravi Rathore
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com [mailto:
> xxxxx@lists.osr.com] On Behalf Of Tim Roberts
> Sent: Friday, 10. June 2011 10:15 PM
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] Driver is Not getting Installed on Windows 7 64bit
>
> Ravi Rathore (RBEI/EST2) wrote:
> > *. My USB function driver for Windows 64 bit is not getting
> installed with Test Certificate on some windows PC. The only difference I
> could find out the they (some Windows PC/better say developer windows 7 PC)
> have security check software installed like PEACY etc.
>
> A test certificate is not enough to have a driver load on a 64-bit
> system. The driver will be INSTALLED, but it will not be allowed to
> load. For that, you need a genuine Class 3 Code Signing Certificate
> from either Verisign or GlobalSign.
>
> –
> Tim Roberts, xxxxx@probo.com
> Providenza & Boekelheide, Inc.
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>


Danny</ravi.rathore>

Meanwhile following is the info in SetupApi:

Writing common driver property settings.

dvi: DriverDescription=DYNACORD DSP-260

dvi: DeviceDisplayName=DYNACORD DSP-260

dvi: Install Device: Restarting device. 15:00:06.777

dvi: Install Device: Restarting device completed. 15:00:15.918

!!! dvi: Device not started: Device has problem: 0x1f: CM_PROB_FAILED_ADD.

dvi: Default installer: Exit

dvi: {DIF_NEWDEVICEWIZARD_FINISHINSTALL - exit(0xe000020e)} 15:00:15.988

ndv: Device install status=0x00000000

ndv: Performing device install final cleanup…

! ndv: Queueing up error report since device has a PnP problem…

ndv: {Core Device Install - exit(0x00000000)} 15:00:16.010

ump: Server install process exited with code 0x00000000 15:00:16.022

ump: {Plug and Play Service: Device Install exit(00000000)}

Mit freundlichen Gr??en / Best regards

Ravi Rathore

RBEI/EST2


From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Danny
Sent: Monday, 13. June 2011 5:11 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Driver is Not getting Installed on Windows 7 64bit

During system boot, press F8 and disable signature enforcement.

2011/6/13 Ravi Rathore (RBEI/EST2) <ravi.rathore>>
Hello Tim,

So With the Test Certificate I will not be able to Test my driver on 64 bit Windows 7. It is very hard to believe.

Is there Any way I can test my driver on Window 7 64 bit without purchasing certificate.

Thanks
Ravi Rathore

-----Original Message-----
From: xxxxx@lists.osr.commailto:xxxxx [mailto:xxxxx@lists.osr.commailto:xxxxx] On Behalf Of Tim Roberts
Sent: Friday, 10. June 2011 10:15 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Driver is Not getting Installed on Windows 7 64bit

Ravi Rathore (RBEI/EST2) wrote:
> *. My USB function driver for Windows 64 bit is not getting installed with Test Certificate on some windows PC. The only difference I could find out the they (some Windows PC/better say developer windows 7 PC) have security check software installed like PEACY etc.

A test certificate is not enough to have a driver load on a 64-bit
system. The driver will be INSTALLED, but it will not be allowed to
load. For that, you need a genuine Class 3 Code Signing Certificate
from either Verisign or GlobalSign.


Tim Roberts, xxxxx@probo.commailto:xxxxx
Providenza & Boekelheide, Inc.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


Danny
— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></ravi.rathore>

The WDK documentation has an article on how to use a test certificate on 64
bit OSes. Basically you install the certificate on the target system and put
the system into test signing mode.

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ravi Rathore
(RBEI/EST2)
Sent: Monday, June 13, 2011 7:32 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Driver is Not getting Installed on Windows 7 64bit

Hello Tim,

So With the Test Certificate I will not be able to Test my driver on 64 bit
Windows 7. It is very hard to believe.

Is there Any way I can test my driver on Window 7 64 bit without purchasing
certificate.

Thanks
Ravi Rathore

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Tim Roberts
Sent: Friday, 10. June 2011 10:15 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Driver is Not getting Installed on Windows 7 64bit

Ravi Rathore (RBEI/EST2) wrote:

*. My USB function driver for Windows 64 bit is not getting
installed with Test Certificate on some windows PC. The only difference I
could find out the they (some Windows PC/better say developer windows 7 PC)
have security check software installed like PEACY etc.

A test certificate is not enough to have a driver load on a 64-bit system.
The driver will be INSTALLED, but it will not be allowed to load. For that,
you need a genuine Class 3 Code Signing Certificate from either Verisign or
GlobalSign.


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


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

On Mon, Jun 13, 2011 at 1:07 PM, Ravi Rathore (RBEI/EST2)
<ravi.rathore> wrote:
> !!! dvi: Device not started: Device has problem: 0x1f: CM_PROB_FAILED_ADD.

Can you check whether your driver is being loaded and if it is then
what’s the status returned by AddDevice routine.

Kris</ravi.rathore>

My AddDevice routing is not getting called. (Confirmed with debug view & debug build).

Following is the summary of what I DID:

*. Build a driver with debug build for both 32 bit and 64 bit windows 7.
*. For 32 bit it is working fine.
*. For 64 bit: My driver package path is ==> Folder where the .sys is finally generated, through the build -cez command. (i.e. least level/(not the source code directory))
*. Create a certificate ABC.cer in driver package as
> makecert -r -pe -ss privatestore -n “CN=ABC.com” ABC.cer
> Succedded
*. Create a Catalog File for Test Singing
> Inf2Cat.exe /driver:path /os target (i.e 7_X64)
> Signability Test completed
> Error:
> None
> Warnings
> None
*. Test- Sign the Catalog file
> Signtool sign /v /s privatestore /n ABC.com /t http://timestamp.verisign.com/scripts/timestamp.dll catfilename

On Test PC

*. Copy all the Driver Package folder
*. Install Test Certificate
> Certmgr.exe /add ABC.cer /s /r localMachine root
> CertMgr succeeded
> Certmgr.exe /add ABC.cer /s /r localMachine trustedpublisher
> CertMgr succeeded
*. Preparing Test PC
> bcdedit /set TESTSIGNING ON
> Usefully
*. Enabled Code Integrity verbose event Logging from device manager
*. Enable Audit policy
> Auditpol /set /Category:“system” /failure:enable
*. While re-starting the system , disable the driver signature inforcement by F8 Key.
*. Install the driver: During installation: None of the Debug messages occurs in Debug view. Not even in AddDevice Routine.
*. After installing the driver:
*. Wizard say not able to load the driver Error Code : 31
*. SetupApiDevicelog says:
> !!! dvi: Device not started: Device has problem: 0x1f: CM_PROB_FAILED_ADD.

Mit freundlichen Gr??en / Best regards

Ravi Rathore
RBEI/EST2

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Krzysztof Uchronski
Sent: Monday, 13. June 2011 6:24 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Driver is Not getting Installed on Windows 7 64bit

On Mon, Jun 13, 2011 at 1:07 PM, Ravi Rathore (RBEI/EST2)
<ravi.rathore> wrote:
> !!! dvi: Device not started: Device has problem: 0x1f: CM_PROB_FAILED_ADD.

Can you check whether your driver is being loaded and if it is then
what’s the status returned by AddDevice routine.

Kris


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</ravi.rathore>

I found the following article on MSDN to be most helpful in preparing
windows, and self signing a certificate. I was able to self sign my
driver and run it in Windows x64. Everything you need to know is in one
place.

You can download it from here. Its a Microsoft word file.

http://msdn.microsoft.com/en-us/windows/hardware/gg487328

  • Ben Buckwalter

On 6/13/2011 8:36 AM, Bill Wandel wrote:

The WDK documentation has an article on how to use a test certificate on 64
bit OSes. Basically you install the certificate on the target system and put
the system into test signing mode.

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ravi Rathore
(RBEI/EST2)
Sent: Monday, June 13, 2011 7:32 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Driver is Not getting Installed on Windows 7 64bit

Hello Tim,

So With the Test Certificate I will not be able to Test my driver on 64 bit
Windows 7. It is very hard to believe.

Is there Any way I can test my driver on Window 7 64 bit without purchasing
certificate.

Thanks
Ravi Rathore

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Tim Roberts
Sent: Friday, 10. June 2011 10:15 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Driver is Not getting Installed on Windows 7 64bit

Ravi Rathore (RBEI/EST2) wrote:
> *. My USB function driver for Windows 64 bit is not getting
installed with Test Certificate on some windows PC. The only difference I
could find out the they (some Windows PC/better say developer windows 7 PC)
have security check software installed like PEACY etc.

A test certificate is not enough to have a driver load on a 64-bit system.
The driver will be INSTALLED, but it will not be allowed to load. For that,
you need a genuine Class 3 Code Signing Certificate from either Verisign or
GlobalSign.


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


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Ravi Rathore (RBEI/EST2) wrote:

So With the Test Certificate I will not be able to Test my driver on 64 bit Windows 7. It is very hard to believe.

The rules are quite clear, and have been discussed here many times.

Is there Any way I can test my driver on Window 7 64 bit without purchasing certificate.

Absolutely. You can attach a kernel debugger, or you can select the
“disable signature enforcement” option at each boot time. However, if
you ever hope to ship this driver outside of your cubicle, you are going
to need to sign it the right way. You might as well get the certificate
now.


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

>Absolutely. You can attach a kernel debugger, or you can select the

“disable signature enforcement” option at each boot time. However, if
you ever hope to ship this driver outside of your cubicle, you are going
to need to sign it the right way. You might as well get the certificate
now.

Ravi:
*. Now I build a driver {from command prompt for Windows 7/64 bit on my PC Windows XP 32 bit}.
*. On Test Laptop windows7/64bit , I did select the disable signature enforcement during boot F8.
*. Copied the build driver to Test Laptop and tried to install the driver but Wizards say :- “The device is not working properly because Windows can not load the drivers required for this device. (Code 31)”

The setupAPI.device.log says

Install Device: Restarting Device
Install Device: Restarting device completed
Device not started: Device has problem: Ox1F: CM_PROB_FAILED_ADD.

It seems like there is not a problem of driver signing but so far no luck for me…

After failing even in disabling signature enforcement during boot F8. I though it could not be singing problem.

The actual problem was in my inf at following line, which I could find only when I attach a debugger in Windows 7. (The windebug was not displaying any messages if I directly install the Checked build.)

[XXX.AddReg]
HKR,“System\Currentcontrolset\Services\XXX\Parameters”,“MaximumTransferSize”,0x10001,4096
HKR,“System\Currentcontrolset\Services\XXX\Parameters”,“DebugLevel”,0x10001,2

Read Operation for this Key is getting failed in Windows 7 but not in XP. I tried with replacing it with HKLM and it works.

~ Thanks
Ravi Rathore

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Ravi Rathore (RBEI/EST2)
Sent: Tuesday, 14. June 2011 2:06 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Driver is Not getting Installed on Windows 7 64bit

Absolutely. You can attach a kernel debugger, or you can select the
“disable signature enforcement” option at each boot time. However, if
you ever hope to ship this driver outside of your cubicle, you are going
to need to sign it the right way. You might as well get the certificate
now.

Ravi:
*. Now I build a driver {from command prompt for Windows 7/64 bit on my PC Windows XP 32 bit}.
*. On Test Laptop windows7/64bit , I did select the disable signature enforcement during boot F8.
*. Copied the build driver to Test Laptop and tried to install the driver but Wizards say :- “The device is not working properly because Windows can not load the drivers required for this device. (Code 31)”

The setupAPI.device.log says

Install Device: Restarting Device
Install Device: Restarting device completed
Device not started: Device has problem: Ox1F: CM_PROB_FAILED_ADD.

It seems like there is not a problem of driver signing but so far no luck for me…


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Ravi Rathore (RBEI/EST2) wrote:

Ravi:
*. Now I build a driver {from command prompt for Windows 7/64 bit on my PC Windows XP 32 bit}.
*. On Test Laptop windows7/64bit , I did select the disable signature enforcement during boot F8.
*. Copied the build driver to Test Laptop and tried to install the driver but Wizards say :- “The device is not working properly because Windows can not load the drivers required for this device. (Code 31)”

Are you building in the amd64 build environment? One common mistake is
to build 64-bit in the ia64 build environment. That’s for the Itanium
chip, which you are unlikely to encounter in your lifetime.


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