Installing Driver in Windows 8.1

Hi,

I have a virtual storport miniport driver. I wish to install it on a
Windows 8.1 (x64) system using self signing.

  1. For this I have created the “.inf” file and the driver file (.sys)
    compiled for Windows 8.1, 64bit
  2. Using inf2cat the generated the catalog file
  3. Then generated the certificate using makecert
  4. Added the certificate to the trusted root certificate of my Windows 8.1
  5. signed my “cat” file with selfsigned certificate using the signtool
  6. Using devcon, I have tried to install the driver, it gave me an error
    “devcon failed”. Before throwing error, it has printed the message “device
    node created”. It also asked me whether I trust the “certificate authority”
    I have created

In 32 bit Windows 7, I can install this driver *without signing* in test
mode. so I think driver file and inf file are ok.

What could I be missing here?

Thanks a lot,
Lloyd

Further to this I have checked the setupapi.dev.log and found the following
entry -

!!! Failed to create device ID object ‘\root\ABCDFileMount’ Error =
0x000000A1

Any hint is greatly appreciated…

On Thu, Feb 12, 2015 at 6:48 PM, Lloyd wrote:

> Hi,
>
> I have a virtual storport miniport driver. I wish to install it on a
> Windows 8.1 (x64) system using self signing.
>
> 1) For this I have created the “.inf” file and the driver file (.sys)
> compiled for Windows 8.1, 64bit
> 2) Using inf2cat the generated the catalog file
> 3) Then generated the certificate using makecert
> 4) Added the certificate to the trusted root certificate of my Windows 8.1
> 5) signed my “cat” file with selfsigned certificate using the signtool
> 6) Using devcon, I have tried to install the driver, it gave me an error
> “devcon failed”. Before throwing error, it has printed the message “device
> node created”. It also asked me whether I trust the “certificate authority”
> I have created
>
> In 32 bit Windows 7, I can install this driver without signing in test
> mode. so I think driver file and inf file are ok.
>
> What could I be missing here?
>
> Thanks a lot,
> Lloyd
>
>
>

Look up the error code (0xa1 is bad pathname) and then think about the parameters you are passing to devcon.

Sent from my Windows Phone


From: Lloydmailto:xxxxx
Sent: ?2/?12/?2015 5:40 AM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: Re:[ntdev] Installing Driver in Windows 8.1

Further to this I have checked the setupapi.dev.log and found the following entry -

!!! Failed to create device ID object ‘\root\ABCDFileMount’ Error = 0x000000A1

Any hint is greatly appreciated…

On Thu, Feb 12, 2015 at 6:48 PM, Lloyd > wrote:
Hi,

I have a virtual storport miniport driver. I wish to install it on a Windows 8.1 (x64) system using self signing.

1) For this I have created the “.inf” file and the driver file (.sys) compiled for Windows 8.1, 64bit
2) Using inf2cat the generated the catalog file
3) Then generated the certificate using makecert
4) Added the certificate to the trusted root certificate of my Windows 8.1
5) signed my “cat” file with selfsigned certificate using the signtool
6) Using devcon, I have tried to install the driver, it gave me an error “devcon failed”. Before throwing error, it has printed the message “device node created”. It also asked me whether I trust the “certificate authority” I have created

In 32 bit Windows 7, I can install this driver without signing in test mode. so I think driver file and inf file are ok.

What could I be missing here?

Thanks a lot,
Lloyd

— NTDEV is sponsored by OSR Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See http://www.osr.com/careers 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>

Thank you very much Peter for the hint you had given. I changed the
path to ‘root\ABCDFileMount’
from ‘\root\ABCDFileMount’, both in devcon command and in the inf file. Now
it works. I have referred this link (
https://msdn.microsoft.com/en-us/library/windows/hardware/ff546152(v=vs.85).aspx)
for clarification

Thanks a lot,
Lloyd

On Thu, Feb 12, 2015 at 9:34 PM, Peter Wieland
wrote:

> Look up the error code (0xa1 is bad pathname) and then think about the
> parameters you are passing to devcon.
>
> Sent from my Windows Phone
> ------------------------------
> From: Lloyd
> Sent: ‎2/‎12/‎2015 5:40 AM
> To: Windows System Software Devs Interest List
> Subject: Re:[ntdev] Installing Driver in Windows 8.1
>
> Further to this I have checked the setupapi.dev.log and found the
> following entry -
>
> !!! Failed to create device ID object ‘\root\ABCDFileMount’ Error =
> 0x000000A1
>
> Any hint is greatly appreciated…
>
> On Thu, Feb 12, 2015 at 6:48 PM, Lloyd wrote:
>
>> Hi,
>>
>> I have a virtual storport miniport driver. I wish to install it on a
>> Windows 8.1 (x64) system using self signing.
>>
>> 1) For this I have created the “.inf” file and the driver file (.sys)
>> compiled for Windows 8.1, 64bit
>> 2) Using inf2cat the generated the catalog file
>> 3) Then generated the certificate using makecert
>> 4) Added the certificate to the trusted root certificate of my Windows 8.1
>> 5) signed my “cat” file with selfsigned certificate using the signtool
>> 6) Using devcon, I have tried to install the driver, it gave me an error
>> “devcon failed”. Before throwing error, it has printed the message “device
>> node created”. It also asked me whether I trust the “certificate authority”
>> I have created
>>
>> In 32 bit Windows 7, I can install this driver without signing in
>> test mode. so I think driver file and inf file are ok.
>>
>> What could I be missing here?
>>
>> Thanks a lot,
>> Lloyd
>>
>>
>>
> — NTDEV is sponsored by OSR Visit the list at:
> http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See
> http://www.osr.com/careers 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
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> 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
>