Skip to content

Test-DISMFromOSDCloudUSB always enumerates to True for Lenovo devices #181

Closed
@skyblaster

Description

@skyblaster

When testing on a Lenovo and the following folder is present, the Test-DISMFromOSDCloudUSB function enumerates to True, even though a $ComputerProduct sub folder does not exist:
E:\OSDCloud\DriverPacks\DISM\Lenovo\

This is due to "PackageID": null, statements in the Lenovo DriverPack Catalog

Causing line 30 to fail to complete the path:

$DriverPathPackageID = "$($OSDCloudDriveLetter):\OSDCloud\DriverPacks\DISM\$ComputerManufacturer\$PackageID"

And line 41 to return True

elseif (Test-Path $DriverPathPackageID){Return $true}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions