Files
winutil/functions/public/Invoke-WinUtilAutoRun.ps1
T
Gabi e6d8fdff75 fix import (#4447)
* Made -Config use Runspaces main.ps1

* Fix no-UI config autorun

* Skip empty no-UI autorun sections

* Update Invoke-WinUtilAutoRun.ps1

* Ignore blank DNS selection during autorun

* Update main.ps1

* Update Invoke-WPFRunspace.ps1

* Update Invoke-WPFRunspace.ps1

* Update Invoke-WinUtilAutoRun.ps1

* Update Invoke-WinUtilAutoRun.ps1

* Update Invoke-WPFtweaksbutton.ps1

* Update start.ps1

* Update main.ps1

* Update Invoke-WPFtweaksbutton.ps1

* Update Invoke-WPFRunspace.ps1

* Update _index.md

* Merge branch 'ChrisTitusTech:main' into patch-3

* Merge branch 'ChrisTitusTech:main' into patch-3
2026-05-12 12:58:46 -05:00

35 lines
744 B
PowerShell

function Invoke-WinUtilAutoRun {
<#
.SYNOPSIS
Runs Install, Tweaks, and Features with optional UI invocation.
#>
function BusyWait {
Start-Sleep -Milliseconds 100
while ($sync.ProcessRunning) {
Start-Sleep -Milliseconds 100
}
}
if ($sync.selectedTweaks.Count -gt 0) {
Write-Host "Applying tweaks..."
Invoke-WPFtweaksbutton
BusyWait
}
if ($sync.selectedFeatures.Count -gt 0) {
Write-Host "Applying features..."
Invoke-WPFFeatureInstall
BusyWait
}
if ($sync.selectedApps.Count -gt 0) {
Write-Host "Installing applications..."
Invoke-WPFInstall
BusyWait
}
Write-Host "Done."
}