Skip to content

NoUI mode and Concurrency edits#4092

Merged
ChrisTitusTech merged 4 commits intoChrisTitusTech:mainfrom
KamaleiZestri:autorun
Feb 22, 2026
Merged

NoUI mode and Concurrency edits#4092
ChrisTitusTech merged 4 commits intoChrisTitusTech:mainfrom
KamaleiZestri:autorun

Conversation

@KamaleiZestri
Copy link
Contributor

Type of Change

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

Description

Following on from #4051, this PR adds the -noui run switch for winutil. When combined with -run and -config test.json, winutil will run all the tweaks,toggles,features, and installs listed in test.json without loading the UI.

Changes:

  • Create Invoke-WPFUIThread.ps1 in order to add a guard clause preventing wpfform threads from running with -noui.
  • Add -noui guard clause to Set-WinUtilProgressbar.ps1
  • Add -noui guard clause to Invoke-WPFImpex.ps1
  • Removed $DebugPreference from each call to Invoke-Runspace and instead set it once for the entire pool.
  • Also pass -noui value into runspaces.
  • Moved loop from Invoke-WinUtilFeatureInstall.ps1 to the caller Invoke-WPFFeatureInstall.ps1 to match with the tweaks equivalent.
  • Moved some $sync.variables inside Invoke-Runspace scriptblocks.
  • Move package manager preference load and applications config to load earlier in main.ps1, before UI.

@github-actions github-actions bot added the new feature New feature or request label Feb 19, 2026
@GabiNun GabiNun mentioned this pull request Feb 22, 2026
4 tasks
@ChrisTitusTech ChrisTitusTech merged commit d005a22 into ChrisTitusTech:main Feb 22, 2026
3 checks passed
@ChrisTitusTech
Copy link
Owner

Great PR, this also seemed to make the script launch a little faster as well.

@KamaleiZestri KamaleiZestri deleted the autorun branch February 25, 2026 01:16
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.

2 participants