mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-08-06 12:06:22 -05:00
2
.gitignore
vendored
2
.gitignore
vendored
@ -54,3 +54,5 @@ winutil.ps1
|
|||||||
.github/site/
|
.github/site/
|
||||||
|
|
||||||
binary/
|
binary/
|
||||||
|
|
||||||
|
.preprocessor_hashes.json
|
@ -315,33 +315,40 @@ $sync["Form"].Add_ContentRendered({
|
|||||||
|
|
||||||
# maybe this is not the best place to load and execute config file?
|
# maybe this is not the best place to load and execute config file?
|
||||||
# maybe community can help?
|
# maybe community can help?
|
||||||
if ($PARAM_CONFIG) {
|
if ($PARAM_CONFIG -and -not [string]::IsNullOrWhiteSpace($PARAM_CONFIG)) {
|
||||||
Invoke-WPFImpex -type "import" -Config $PARAM_CONFIG
|
Invoke-WPFImpex -type "import" -Config $PARAM_CONFIG
|
||||||
if ($PARAM_RUN) {
|
if ($PARAM_RUN) {
|
||||||
|
# Wait for any existing process to complete before starting
|
||||||
while ($sync.ProcessRunning) {
|
while ($sync.ProcessRunning) {
|
||||||
Start-Sleep -Seconds 5
|
Start-Sleep -Seconds 5
|
||||||
}
|
}
|
||||||
Start-Sleep -Seconds 5
|
Start-Sleep -Seconds 5
|
||||||
|
|
||||||
Write-Host "Applying tweaks..."
|
Write-Host "Applying tweaks..."
|
||||||
Invoke-WPFtweaksbutton
|
if (-not $sync.ProcessRunning) {
|
||||||
while ($sync.ProcessRunning) {
|
Invoke-WPFtweaksbutton
|
||||||
Start-Sleep -Seconds 5
|
while ($sync.ProcessRunning) {
|
||||||
|
Start-Sleep -Seconds 5
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Start-Sleep -Seconds 5
|
Start-Sleep -Seconds 5
|
||||||
|
|
||||||
Write-Host "Installing features..."
|
Write-Host "Installing features..."
|
||||||
Invoke-WPFFeatureInstall
|
if (-not $sync.ProcessRunning) {
|
||||||
while ($sync.ProcessRunning) {
|
Invoke-WPFFeatureInstall
|
||||||
Start-Sleep -Seconds 5
|
while ($sync.ProcessRunning) {
|
||||||
|
Start-Sleep -Seconds 5
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Start-Sleep -Seconds 5
|
Start-Sleep -Seconds 5
|
||||||
|
|
||||||
Write-Host "Installing applications..."
|
Write-Host "Installing applications..."
|
||||||
while ($sync.ProcessRunning) {
|
if (-not $sync.ProcessRunning) {
|
||||||
Start-Sleep -Seconds 1
|
Invoke-WPFInstall
|
||||||
|
while ($sync.ProcessRunning) {
|
||||||
|
Start-Sleep -Seconds 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Invoke-WPFInstall
|
|
||||||
Start-Sleep -Seconds 5
|
Start-Sleep -Seconds 5
|
||||||
|
|
||||||
Write-Host "Done."
|
Write-Host "Done."
|
||||||
|
Reference in New Issue
Block a user