Skip to content

Cleanup winget upgrade - #4410

Merged
ChrisTitusTech merged 11 commits into
mainfrom
unknown repository
May 5, 2026
Merged

Cleanup winget upgrade#4410
ChrisTitusTech merged 11 commits into
mainfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Apr 23, 2026

Copy link
Copy Markdown

Type of Change

  • New feature
  • Bug fix
  • Documentation update
  • UI/UX improvement

Description

The Invoke-WPFInstallUpgrade function was the only function that used the Get-WinUtilInstallerProcess function and Get-WinUtilInstallerProcess.ps1 function at all so i decided to remove them and make Invoke-WPFInstallUpgrade standalone

I also made sure the upgrade process opens inside of the winutil window there was no reason for it to open another powershell window

I also made sure it check if winget is installed before upgrading all applications

Issue related to PR

  • Resolves #

@ghost
ghost requested a review from ChrisTitusTech as a code owner April 23, 2026 08:15
@github-actions github-actions Bot added the new feature New feature or request label Apr 23, 2026
$msg = "[Invoke-WPFInstallUpgrade] Install process is currently running. Please check for a powershell window labeled 'Winget Install'"
[System.Windows.MessageBox]::Show($msg, "Winutil", [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Warning)
return
}

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no reason to check if winget install process is running because you can't click upgrade when installing apps since there is the "installing apps" pop out

@ChrisTitusTech ChrisTitusTech left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Locks up the UI and normal users won't know to look in the terminal.

@ghost

ghost commented Apr 30, 2026

Copy link
Copy Markdown
Author

Locks up the UI and normal users won't know to look in the terminal.

it now uses run spaces so this shouldn't be a issue anymore

@notyusufkhalifa notyusufkhalifa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GabiNun2, Looks good.

@ghost

ghost commented May 1, 2026

Copy link
Copy Markdown
Author

@GabiNun2, Looks good.

thanks

@DeveloperDurp

Copy link
Copy Markdown
Contributor

I also made sure the upgrade process opens inside of the winutil window there was no reason for it to open another powershell window

The reason for this is if you have a bunch of apps installed through winget it will take time to update them all. Unlinking it from the GUI allows users to close WinUtil and let the update run in the background. Moving it into the main process you would want some checks to ensure the user is aware updates are happening and if they close the GUI that those updates will stop.

@ghost

ghost commented May 5, 2026

Copy link
Copy Markdown
Author

I also made sure the upgrade process opens inside of the winutil window there was no reason for it to open another powershell window

The reason for this is if you have a bunch of apps installed through winget it will take time to update them all. Unlinking it from the GUI allows users to close WinUtil and let the update run in the background. Moving it into the main process you would want some checks to ensure the user is aware updates are happening and if they close the GUI that those updates will stop.

fixed it will now launch another ps window

@ChrisTitusTech
ChrisTitusTech merged commit a3f5753 into ChrisTitusTech:main May 5, 2026
3 checks passed
@ghost
ghost deleted the patch-4 branch May 5, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants