-
Notifications
You must be signed in to change notification settings - Fork 94
Description
Describe the bug
When trying to extract the driver using Invoke-OSDCloudDriverPackCM, if a filename has a dot in it, it will not get extracted due to the code splitting it off the dot. Using Split-Path would resolve this.
To Reproduce
Steps to reproduce the behavior:
When downloading a driver for the Dell Pro Max T2 Tower, we get the following from the logs
-Name Dell FCT2250 Win11 A01
-BaseName FCT2250-15WH7_Win11_1
-Product 0CE1 0CE2
-FileName FCT2250-15WH7_Win11_1.0_A01.exe
-Url http://downloads.dell.com/FOLDER13500586M/1/FCT2250-15WH7_Win11_1.0_A01.exe
As you can see, the basename and filename are different.
This leads to the error: Did not find EXE file to attempt to extract.
Expected behavior
The basename should be the same as the filename.
Desktop (please complete the following information):
- OS: Windows PE
- Hardware: Dell Pro Max Tower T2
Additional context
If you go change line 126 to something like
$GetMyDriverPackBaseName = (Split-Path $GetMyDriverPack.FileName -Leaf) then you would get the proper file name.