Skip to content

Fix PowerShell updates failing (#4865)#4878

Merged
Gabriel Dufresne (GabrielDuf) merged 1 commit into
mainfrom
WinGet-Client-Update-Error
Jun 5, 2026
Merged

Fix PowerShell updates failing (#4865)#4878
Gabriel Dufresne (GabrielDuf) merged 1 commit into
mainfrom
WinGet-Client-Update-Error

Conversation

@GabrielDuf
Copy link
Copy Markdown
Contributor

This pull request introduces important improvements to the PowerShell package operation helper and the process operation logic, focusing on better compatibility and error handling. The most significant changes are summarized below (#4865):

PowerShell Package Operation Improvements

  • Ensured the -Scope parameter is only added for install operations, as Update-Module does not accept it, improving command correctness and preventing errors during updates.
  • Added a step to force TLS 1.2 for all operations except uninstall, addressing compatibility issues with the PowerShell Gallery on Windows PowerShell 5.x, which defaults to outdated TLS versions.

Process Operation Error Handling

  • Added a check to detect when an elevation tool (like UniGetUI Elevator or Gsudo) is unavailable, and gracefully abort the operation with a clear error message if administrator privileges cannot be obtained.

@GabrielDuf Gabriel Dufresne (GabrielDuf) merged commit c4da61c into main Jun 5, 2026
3 checks passed
@GabrielDuf Gabriel Dufresne (GabrielDuf) deleted the WinGet-Client-Update-Error branch June 5, 2026 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants