Hi All,
We are developing NDIS LWF.
But while installing the driver in service context on vista and above, SetupCopyOEMInf() failed(Error Code: 0xE000242 -> ERROR_AUTHENTICODE_TRUST_NOT_ESTABLISHED).
Instead of using service, if we use normal application, it works fine.
Has anyone encountered such problems? Any pointers that will be helpfull.
Thanks & Regards,
Rajendra
What will setupapi logs say?
–
Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com
wrote in message news:xxxxx@ntdev…
> Hi All,
>
> We are developing NDIS LWF.
> But while installing the driver in service context on vista and above, SetupCopyOEMInf() failed(Error Code: 0xE000242 -> ERROR_AUTHENTICODE_TRUST_NOT_ESTABLISHED).
> Instead of using service, if we use normal application, it works fine.
>
> Has anyone encountered such problems? Any pointers that will be helpfull.
>
> Thanks & Regards,
> Rajendra
>
>
Hello Maxim,
Thanks for your reply.
setupapi logs are:
>> [SetupCopyOEMInf - C:\ndis6\qh2013.ac\wsnf.inf]
>> Section start 2013/01/05 16:18:01.983
cmd: “C:\ndis6\qh2013.ac\ndis6svc.exe”
sto: {Import Driver Package: C:\ndis6\qh2013.ac\wsnf.inf} 16:18:02.171
sto: Importing driver package into Driver Store:
sto: Driver Store = C:\Windows\System32\DriverStore (Online | 6.1.7600)
sto: Driver Package = C:\ndis6\qh2013.ac\wsnf.inf
sto: Architecture = x86
sto: Locale Name = neutral
sto: Flags = 0x00000008
sto: Copying driver package files to ‘C:\Windows\TEMP{41e66b91-f26b-22bb-60d6-b63b886fcc5d}’.
inf: Opened INF: ‘C:\ndis6\qh2013.ac\wsnf.inf’ ([strings])
inf: Opened INF: ‘C:\ndis6\qh2013.ac\wsnf.inf’ ([strings])
flq: {FILE_QUEUE_COPY}
flq: CopyStyle - 0x00000000
flq: SourceRootPath - ‘C:\ndis6\qh2013.ac’
flq: SourceFilename - ‘wsnf.inf’
flq: TargetDirectory- ‘C:\Windows\TEMP{41e66b91-f26b-22bb-60d6-b63b886fcc5d}’
flq: {FILE_QUEUE_COPY exit(0x00000000)}
flq: {FILE_QUEUE_COPY}
flq: CopyStyle - 0x00000000
flq: SourceRootPath - ‘C:\ndis6\qh2013.ac’
flq: SourceFilename - ‘wsnf.sys’
flq: TargetDirectory- ‘C:\Windows\TEMP{41e66b91-f26b-22bb-60d6-b63b886fcc5d}’
flq: {FILE_QUEUE_COPY exit(0x00000000)}
flq: {FILE_QUEUE_COPY}
flq: CopyStyle - 0x00000000
flq: SourceRootPath - ‘C:\ndis6\qh2013.ac’
flq: SourceFilename - ‘wsnf86.cat’
flq: TargetDirectory- ‘C:\Windows\TEMP{41e66b91-f26b-22bb-60d6-b63b886fcc5d}’
flq: {FILE_QUEUE_COPY exit(0x00000000)}
flq: {_commit_file_queue}
flq: CommitQ DelNodes=0 RenNodes=0 CopyNodes=3
flq: {_commit_copy_subqueue}
flq: subqueue count=3
flq: source media:
flq: SourcePath - [C:\ndis6\qh2013.ac]
flq: SourceFile - [wsnf.inf]
flq: Flags - 0x00000000
flq: {_commit_copyfile}
flq: CopyFile: ‘C:\ndis6\qh2013.ac\wsnf.inf’
flq: to: ‘C:\Windows\TEMP{41e66b91-f26b-22bb-60d6-b63b886fcc5d}\SET58F3.tmp’
flq: MoveFile: ‘C:\Windows\TEMP{41e66b91-f26b-22bb-60d6-b63b886fcc5d}\SET58F3.tmp’
flq: to: ‘C:\Windows\TEMP{41e66b91-f26b-22bb-60d6-b63b886fcc5d}\wsnf.inf’
flq: {_commit_copyfile exit OK}
flq: {_commit_copyfile}
flq: CopyFile: ‘C:\ndis6\qh2013.ac\wsnf.sys’
flq: to: ‘C:\Windows\TEMP{41e66b91-f26b-22bb-60d6-b63b886fcc5d}\SET5903.tmp’
flq: MoveFile: ‘C:\Windows\TEMP{41e66b91-f26b-22bb-60d6-b63b886fcc5d}\SET5903.tmp’
flq: to: ‘C:\Windows\TEMP{41e66b91-f26b-22bb-60d6-b63b886fcc5d}\wsnf.sys’
flq: {_commit_copyfile exit OK}
flq: {_commit_copyfile}
flq: CopyFile: ‘C:\ndis6\qh2013.ac\wsnf86.cat’
flq: to: ‘C:\Windows\TEMP{41e66b91-f26b-22bb-60d6-b63b886fcc5d}\SET5914.tmp’
flq: MoveFile: ‘C:\Windows\TEMP{41e66b91-f26b-22bb-60d6-b63b886fcc5d}\SET5914.tmp’
flq: to: ‘C:\Windows\TEMP{41e66b91-f26b-22bb-60d6-b63b886fcc5d}\wsnf86.cat’
flq: {_commit_copyfile exit OK}
flq: {_commit_copy_subqueue exit OK}
flq: {_commit_file_queue exit OK}
pol: {Driver package policy check} 16:18:03.327
pol: {Driver package policy check - exit(0x00000000)} 16:18:03.327
sto: {Stage Driver Package: C:\Windows\TEMP{41e66b91-f26b-22bb-60d6-b63b886fcc5d}\wsnf.inf} 16:18:03.327
inf: Opened INF: ‘C:\Windows\TEMP{41e66b91-f26b-22bb-60d6-b63b886fcc5d}\wsnf.inf’ ([strings])
inf: Opened INF: ‘C:\Windows\TEMP{41e66b91-f26b-22bb-60d6-b63b886fcc5d}\wsnf.inf’ ([strings])
sto: Copying driver package files:
sto: Source Path = C:\Windows\TEMP{41e66b91-f26b-22bb-60d6-b63b886fcc5d}
sto: Destination Path = C:\Windows\System32\DriverStore\Temp{2bd3e37c-2416-6b20-698b-9173fbfdef32}
flq: {FILE_QUEUE_COPY}
flq: CopyStyle - 0x00000010
flq: SourceRootPath - ‘C:\Windows\TEMP{41e66b91-f26b-22bb-60d6-b63b886fcc5d}’
flq: SourceFilename - ‘wsnf.inf’
flq: TargetDirectory- ‘C:\Windows\System32\DriverStore\Temp{2bd3e37c-2416-6b20-698b-9173fbfdef32}’
flq: {FILE_QUEUE_COPY exit(0x00000000)}
flq: {FILE_QUEUE_COPY}
flq: CopyStyle - 0x00000010
flq: SourceRootPath - ‘C:\Windows\TEMP{41e66b91-f26b-22bb-60d6-b63b886fcc5d}’
flq: SourceFilename - ‘wsnf.sys’
flq: TargetDirectory- ‘C:\Windows\System32\DriverStore\Temp{2bd3e37c-2416-6b20-698b-9173fbfdef32}’
flq: {FILE_QUEUE_COPY exit(0x00000000)}
flq: {FILE_QUEUE_COPY}
flq: CopyStyle - 0x00000010
flq: SourceRootPath - ‘C:\Windows\TEMP{41e66b91-f26b-22bb-60d6-b63b886fcc5d}’
flq: SourceFilename - ‘wsnf86.cat’
flq: TargetDirectory- ‘C:\Windows\System32\DriverStore\Temp{2bd3e37c-2416-6b20-698b-9173fbfdef32}’
flq: {FILE_QUEUE_COPY exit(0x00000000)}
flq: {_commit_file_queue}
flq: CommitQ DelNodes=0 RenNodes=0 CopyNodes=3
flq: {_commit_copy_subqueue}
flq: subqueue count=3
flq: source media:
flq: SourcePath - [C:\Windows\TEMP{41e66b91-f26b-22bb-60d6-b63b886fcc5d}]
flq: SourceFile - [wsnf.inf]
flq: Flags - 0x00000000
flq: {_commit_copyfile}
flq: CopyFile: ‘C:\Windows\TEMP{41e66b91-f26b-22bb-60d6-b63b886fcc5d}\wsnf.inf’
flq: to: ‘C:\Windows\System32\DriverStore\Temp{2bd3e37c-2416-6b20-698b-9173fbfdef32}\SET5DA6.tmp’
flq: MoveFile: ‘C:\Windows\System32\DriverStore\Temp{2bd3e37c-2416-6b20-698b-9173fbfdef32}\SET5DA6.tmp’
flq: to: ‘C:\Windows\System32\DriverStore\Temp{2bd3e37c-2416-6b20-698b-9173fbfdef32}\wsnf.inf’
flq: {_commit_copyfile exit OK}
flq: {_commit_copyfile}
flq: CopyFile: ‘C:\Windows\TEMP{41e66b91-f26b-22bb-60d6-b63b886fcc5d}\wsnf.sys’
flq: to: ‘C:\Windows\System32\DriverStore\Temp{2bd3e37c-2416-6b20-698b-9173fbfdef32}\SET5DB6.tmp’
flq: MoveFile: ‘C:\Windows\System32\DriverStore\Temp{2bd3e37c-2416-6b20-698b-9173fbfdef32}\SET5DB6.tmp’
flq: to: ‘C:\Windows\System32\DriverStore\Temp{2bd3e37c-2416-6b20-698b-9173fbfdef32}\wsnf.sys’
flq: {_commit_copyfile exit OK}
flq: {_commit_copyfile}
flq: CopyFile: ‘C:\Windows\TEMP{41e66b91-f26b-22bb-60d6-b63b886fcc5d}\wsnf86.cat’
flq: to: ‘C:\Windows\System32\DriverStore\Temp{2bd3e37c-2416-6b20-698b-9173fbfdef32}\SET5DB7.tmp’
flq: MoveFile: ‘C:\Windows\System32\DriverStore\Temp{2bd3e37c-2416-6b20-698b-9173fbfdef32}\SET5DB7.tmp’
flq: to: ‘C:\Windows\System32\DriverStore\Temp{2bd3e37c-2416-6b20-698b-9173fbfdef32}\wsnf86.cat’
flq: {_commit_copyfile exit OK}
flq: {_commit_copy_subqueue exit OK}
flq: {_commit_file_queue exit OK}
sto: {DRIVERSTORE_IMPORT_NOTIFY_VALIDATE} 16:18:03.468
inf: Opened INF: ‘C:\Windows\System32\DriverStore\Temp{2bd3e37c-2416-6b20-698b-9173fbfdef32}\wsnf.inf’ ([strings])
sig: {_VERIFY_FILE_SIGNATURE} 16:18:03.499
sig: Key = wsnf.inf
sig: FilePath = C:\Windows\System32\DriverStore\Temp{2bd3e37c-2416-6b20-698b-9173fbfdef32}\wsnf.inf
sig: Catalog = C:\Windows\System32\DriverStore\Temp{2bd3e37c-2416-6b20-698b-9173fbfdef32}\wsnf86.cat
! sig: Verifying file against specific (valid) catalog failed! (0x800b0109)
! sig: Error 0x800b0109: A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider.
sig: {_VERIFY_FILE_SIGNATURE exit(0x800b0109)} 16:18:03.827
sig: {_VERIFY_FILE_SIGNATURE} 16:18:03.827
sig: Key = wsnf.inf
sig: FilePath = C:\Windows\System32\DriverStore\Temp{2bd3e37c-2416-6b20-698b-9173fbfdef32}\wsnf.inf
sig: Catalog = C:\Windows\System32\DriverStore\Temp{2bd3e37c-2416-6b20-698b-9173fbfdef32}\wsnf86.cat
sig: Success: File is signed in Authenticode™ catalog.
sig: Error 0xe0000242: The publisher of an Authenticode™ signed catalog has not yet been established as trusted.
sig: {_VERIFY_FILE_SIGNATURE exit(0xe0000242)} 16:18:03.905
sto: Validating driver package files against catalog ‘wsnf86.cat’.
!!! sto: Driver package signer is unknown. Assuming untrusted signer. Error = 0x800F0242
!!! ndv: Driver package failed signature validation. Error = 0xE0000242
sto: {DRIVERSTORE_IMPORT_NOTIFY_VALIDATE exit(0xe0000242)} 16:18:03.905
!!! sto: Driver package failed signature verification. Error = 0xE0000242
!!! sto: Failed to import driver package into Driver Store. Error = 0xE0000242
sto: {Stage Driver Package: exit(0xe0000242)} 16:18:03.905
!!! sto: Failed to stage driver package to Driver Store. Error = 0xE0000242, Time = 1656 ms
sto: {Import Driver Package: exit(0xe0000242)} 16:18:03.921
inf: Opened INF: ‘C:\ndis6\qh2013.ac\wsnf.inf’ ([strings])
! inf: Add to Driver Store unsuccessful
! inf: Error 0xe0000242: The publisher of an Authenticode™ signed catalog has not yet been established as trusted.
!!! inf: returning failure to SetupCopyOEMInf
<<< Section end 2013/01/05 16:18:04.140
<<< [Exit status: FAILURE(0xe0000242)]
===============================================================
From logs:
Is this require logo signed catlog files to install NDIS6 based driver through service?
Regards,
Rajendra
xxxxx@gmail.com wrote:
Hello Maxim,
Thanks for your reply.
setupapi logs are:
…
sig: {_VERIFY_FILE_SIGNATURE} 16:18:03.499
sig: Key = wsnf.inf
sig: FilePath = C:\Windows\System32\DriverStore\Temp{2bd3e37c-2416-6b20-698b-9173fbfdef32}\wsnf.inf
sig: Catalog = C:\Windows\System32\DriverStore\Temp{2bd3e37c-2416-6b20-698b-9173fbfdef32}\wsnf86.cat
! sig: Verifying file against specific (valid) catalog failed! (0x800b0109)
! sig: Error 0x800b0109: A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider.
sig: {_VERIFY_FILE_SIGNATURE exit(0x800b0109)} 16:18:03.827
sig: {_VERIFY_FILE_SIGNATURE} 16:18:03.827
sig: Key = wsnf.inf
sig: FilePath = C:\Windows\System32\DriverStore\Temp{2bd3e37c-2416-6b20-698b-9173fbfdef32}\wsnf.inf
sig: Catalog = C:\Windows\System32\DriverStore\Temp{2bd3e37c-2416-6b20-698b-9173fbfdef32}\wsnf86.cat
sig: Success: File is signed in Authenticode™ catalog.
sig: Error 0xe0000242: The publisher of an Authenticode™ signed catalog has not yet been established as trusted.
sig: {_VERIFY_FILE_SIGNATURE exit(0xe0000242)} 16:18:03.905
sto: Validating driver package files against catalog ‘wsnf86.cat’.
!!! sto: Driver package signer is unknown. Assuming untrusted signer. Error = 0x800F0242
!!! ndv: Driver package failed signature validation. Error = 0xE0000242
sto: {DRIVERSTORE_IMPORT_NOTIFY_VALIDATE exit(0xe0000242)} 16:18:03.905
!!! sto: Driver package failed signature verification. Error = 0xE0000242
!!! sto: Failed to import driver package into Driver Store. Error = 0xE0000242
sto: {Stage Driver Package: exit(0xe0000242)} 16:18:03.905
!!! sto: Failed to stage driver package to Driver Store. Error = 0xE0000242, Time = 1656 ms
sto: {Import Driver Package: exit(0xe0000242)} 16:18:03.921
inf: Opened INF: ‘C:\ndis6\qh2013.ac\wsnf.inf’ ([strings])
! inf: Add to Driver Store unsuccessful
! inf: Error 0xe0000242: The publisher of an Authenticode™ signed catalog has not yet been established as trusted.
!!! inf: returning failure to SetupCopyOEMInf
<<< Section end 2013/01/05 16:18:04.140
<<< [Exit status: FAILURE(0xe0000242)]
From logs:
Is this require logo signed catlog files to install NDIS6 based driver through service?
Exactly how are you installing this? What this looks like to me is that
you are trying to install this through an application, but you have
specified a flag that tells it to suppress all user interface. When you
install a driver that is not WHQL-signed, it has to ask your
permission. If you do not allow UI, then it simply fails.
NDIS is not my specialty, so it could be I’m misinterpreting this.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.