Forum: Mikrocontroller und Digitale Elektronik CDC Treiber in Microsoft Update bringen


von Roy .. (royw)


Lesenswert?

Hallo,
ich muss einen CDC Treiber (eigentlich nur eine Inf Datei) mit eigener 
VID/PID im Microsoft Windows Update einbinden, damit der Treiber bei 
Bedarf automatisch installiert wird.
Nun suche ic hschon einige zeit wie das funktioniert ... Leider sehe ich 
da nicht ganz durch.
Die Inf Datei habe ich bereits bereits signiert und ein CAT File ist 
auch vorhanden.

Aber wie geht es jetzt weiter ?

Hat da jemand Erfahrung mit ?
Vielen Dank im Voraus

von Jim M. (turboj)


Lesenswert?

Roy .. schrieb:
> ich muss einen CDC Treiber (eigentlich nur eine Inf Datei) mit eigener
> VID/PID im Microsoft Windows Update einbinden, damit der Treiber bei
> Bedarf automatisch installiert wird.

Geht ab Windows 10 automagisch, wenn korrekt als CDC-ACM kodiert im 
Deskriptor.

Und ich zweifle das Du jetzt noch Zeuchs in Win7 oder Win8 Update rein 
bekommst.

von Roy .. (royw)


Lesenswert?

Das mit Windows 10 ist mir auch schon bekannt.
Ich möchte den aber auch in Windows 7 und 8 automatisch installieren 
lassen (also über Windows Update)

von Dieter F. (casa)


Lesenswert?

Hallo,
Bei inf-only gibt es einen vereinfachten Weg: Attestation.
Habe ich erst vor kurzem gemacht.
Man braucht einen Signing Key z.B. von Digicert (EV ist wichtig). Ca. 
450$ pro Jahr.
Dann einen Account bei MS Hardware.
Beides dauert bis es durch ist.
Key kommt im Securtity Device, Versand dauert auch ein paar Wochen, war 
bei mir so.

Man erzeugt ein .cab nach bestimmten Regeln und signiert es.
Lädt dieses zu MS (fast wie für WHQL, ohne jedoch die Logs hochzuladen).
Dann dauert nur ein paar Stunden und man kann das von MS signierte 
Packet herunterladen.

Für MS Update bin ich noch am schauen. Stichwort: Driver flighting.

Es gibt ein paar Videos bei Channel9.
Ich kann später ein paar Links einstellen.

ABER: Der usbser.sys vor Win10 war sehr buggy. Wir haben deshalb einen 
eigenen Treiber.
Oder kaufen, z.B. von Jungo. $$

Grüsse, Dieter

von Dieter F. (casa)


Lesenswert?

Links:
www.jungo.com

MS:
https://developer.microsoft.com/en-us/windows/hardware
https://docs.microsoft.com/en-us/windows-hardware/drivers/install/driver-signing
https://docs.microsoft.com/en-us/windows-hardware/drivers/dashboard/
https://docs.microsoft.com/en-us/windows-hardware/drivers/devtest/

****
https://docs.microsoft.com/en-us/windows-hardware/drivers/dashboard/attestation-signing-a-kernel-driver-for-public-release
****

Channel9 videos:
https://channel9.msdn.com/Blogs/WinHEC/Universal-Driver-Documentation-Update
https://channel9.msdn.com/Blogs/WinHEC/The-New-Hardware-Developer-Center-Dashboard-Part-2-Manage-Your-Driver-Submissions
Dort gibt es noch mehr....

Digicert:
https://www.digicert.com/code-signing/
(Extended Validation Certificate)

Aus meinen Mindmap (Freeplane):

Note: The command tools for Visual Studio are located in the install 
directory, C:\Program Files (x86)\Microsoft Visual Studio 
15.0\Common7\Tools\Shortcuts
-------------------
Create a catalog file (.cat extension). Use the inf2cat tool as shown 
below to create the catalog file. Please note that no space is allowed 
for the switches, /driver:<no space><full path>, /os: :<no space><os1 
name>,:<no space><os2 name>.

inf2cat /v /driver:C:\DriverTestPackage /os:7_64,7_x86 ,XP_X86

This creates a catalog file with the name given in the driver’s .inf 
file. Additional comma separated OSes can be added selectively or all as 
shown below with no spaces.

/os:2000,XP_X86,XP_X64,Server2003_X64,Vista_X64,Vista_X86,7_x86,7_64,Ser 
ver2008_x86,Server2008_x64,Sever2008_IA64,Server2008R2_x86,Server2008R2_ 
x64,Server2008R2_IA64,8_x86,8_x64,  8_ARM, Server8_x64

The updated inf2cat from the new 8.1 WDK has /os option values of 
6_3_X86, 6_3_X64, 6_3_ARM and SERVER_6_3_X64.
Example of INF file for the Version section.

[Version] Signature="$WINDOWS NT$" Class=TOASTER 
ClassGuid={B85B7C50-6A01-11d2-B841-00C04FAD5171} Provider=%ToastRUs% 
DriverVer=09/21/2006,6.0.5736.1 CatalogFile.NTx86 = tostx86.cat 
CatalogFile.NTIA64 = tostia64.cat CatalogFile.NTAMD64 = tstamd64.cat

The /driver (or /drv) option specifies the directory which contains one 
or more INF files. Within this directory, catalog files are created for 
those INF files that contain one or more CatalogFile directives. The 
catalog file name is not restricted to 8.3 name.
Inf2Cat creates the catalog file tstamd64.cat if the command-line 
argument /os:7_X64 is used. Similarly, the tool creates the catalog file 
toastx86.cat if the /os:XP_X86, option is used, similarly for 
Server2008R2_IA64. In case, only one catalog file is desired, then only 
one entry in the INF file as shown below will suffice.

CatalogFile.NT  = toaster.cat
Or,
CatalogFile = toaster.cat
If the date in the INF file is not greater than the OS release date, 
then the following error will be reported by the inf2cat tool if the /os 
parameter was for Windows 7 and date set in the INF file was an earlier 
date.

von Roy .. (royw)


Lesenswert?

Danke , ich schau mir das mal an.

von Roy .. (royw)


Lesenswert?

Ist das nicht nur für Windows 10 ?

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.