question

RomanKantor-5004 avatar image
0 Votes"
RomanKantor-5004 asked RomanKantor-5004 answered

HLK Studio Automation: System.ArgumentException: The driver package must support at least one operating system.

HLK Studio Automation: System.ArgumentException: The driver package must support at least one operating system.
Parameter name: operatingSystems

When I am trying to automate the package creation for whql using packageWriter. I get this error below.
When I create the package using HLK studio GUI providing the path to the same driver.. it does not throw any errors. Any help would be much appreciated.

at Microsoft.UniversalStore.HardwareWorkflow.SubmissionBuilder.DriverPackageInfo..ctor(String driverPackagePath, OperatingSystems operatingSystems, Boolean microsoftDriverPackage, Boolean useLocalDate, Boolean isAudioDriver, Boolean isGraphicsDriver, String workingDirectory)

at Microsoft.Windows.Kits.Hardware.ObjectModel.Submission.PackageWriter.SignabilityTest(DriverInformation driverInfo, OperatingSystems detectedOSs, List`1& errors, List`1& warnings)

at Microsoft.Windows.Kits.Hardware.ObjectModel.Submission.PackageWriter.RunSignabilityTests(DriverInformation driverInfo, List`1& errors, List`1& warnings)

at Microsoft.Windows.Kits.Hardware.ObjectModel.Submission.PackageWriter.AddDriver(String pathToDriver, String pathToSymbols, IEnumerable`1 targets, IEnumerable`1 locales, Boolean validateDriverSignabilityForDownLevel, StringCollection& errorMessages, StringCollection& warningMessages)

at Microsoft.Windows.Kits.Hardware.ObjectModel.Submission.PackageWriter.AddDriver(String pathToDriver, String pathToSymbols, IEnumerable`1 targets, IEnumerable`1 locales, StringCollection& errorMessages, StringCollection& warningMessages)

windows-hardware-certification
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

RomanKantor-5004 avatar image
0 Votes"
RomanKantor-5004 answered

Ended up using PowerShell scripting.
For some reason when doing the same thing using PowerShell script instead of C# it does not throw this error.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.