jantari / LSUClient

Orchestrate driver, BIOS/UEFI and firmware updates for Lenovo computers 👨‍💻
https://jantari.github.io/LSUClient-docs/
MIT License
208 stars 22 forks source link

Join-Path error in Split-ExecutableAndArguments.ps1 #96

Closed b4rt0s1k closed 11 months ago

b4rt0s1k commented 1 year ago

Version

1.6.0

Computer Model

20XY005NMX

Problem

Argument passed to Split-ExecutableAndArguments.ps1 not a directory:

VERBOSE: Installing package n32a130w ... Join-Path: C:\Users\User1\Documents\PowerShell\Modules\LSUClient\1.6.0\private\Split-ExecutableAndArguments.ps1:43 Line | 43 | … PathRelative = Join-Path -Path $WorkingDirectory -ChildPath $testPath | ~~~~~~~~~~~~~~ | The filename, directory name, or volume label syntax is incorrect. : | 'C:\ProgramData\Lenovo\Updates\n32a130w\n32a130w.exe \verysilent | \DIR=C:\ProgramData\Lenovo\Updates\n32a130w\TMP' ID : n32a130w Title : Realtek Audio Driver - 10 (1909 or Later)/11 (21H2 or Later) Type : Driver Success : True FailureReason : PendingAction : REBOOT_SUGGESTED ExitCode : 0 StandardOutput : StandardError : LogOutput : Runtime : 00:00:27.1776414

Additional context

No response

jantari commented 1 year ago

Am I correct that this error occured in PowerShell version 6 or 7?

I can reproduce it there, but not in 5.1

The error is only cosmetic, but I can catch and hide it in the future.

jantari commented 1 year ago

Can you confirm the version of PowerShell this error occured in?

jantari commented 11 months ago

The error is harmless, but now handled and suppressed in LSUClient 1.6.1