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

Roman Kantor 1 Reputation point
2021-11-01T19:24:03.433+00:00

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, List1& errors, List1& warnings)

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

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

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

Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,541 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Roman Kantor 1 Reputation point
    2021-11-04T22:56:32.07+00:00

    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.

    0 comments No comments