From 215faa18edef52df6ceae64d2d1ea74725d4c7a3 Mon Sep 17 00:00:00 2001 From: MyDrift Date: Sun, 14 Jul 2024 02:45:38 +0200 Subject: [PATCH] add check to progresses --- functions/public/Invoke-WPFFeatureInstall.ps1 | 2 +- functions/public/Invoke-WPFInstall.ps1 | 2 +- functions/public/Invoke-WPFUnInstall.ps1 | 2 +- functions/public/Invoke-WPFundoall.ps1 | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/functions/public/Invoke-WPFFeatureInstall.ps1 b/functions/public/Invoke-WPFFeatureInstall.ps1 index 3de106c3..69c57955 100644 --- a/functions/public/Invoke-WPFFeatureInstall.ps1 +++ b/functions/public/Invoke-WPFFeatureInstall.ps1 @@ -26,7 +26,7 @@ function Invoke-WPFFeatureInstall { Invoke-WinUtilFeatureInstall $Features $sync.ProcessRunning = $false - $sync.form.Dispatcher.Invoke([action]{ Set-WinUtilTaskbaritem -state "None" }) + $sync.form.Dispatcher.Invoke([action]{ Set-WinUtilTaskbaritem -state "None" -overlay "$env:TEMP\cttcheck.png" }) Write-Host "===================================" Write-Host "--- Features are Installed ---" diff --git a/functions/public/Invoke-WPFInstall.ps1 b/functions/public/Invoke-WPFInstall.ps1 index 182199f9..4994d564 100644 --- a/functions/public/Invoke-WPFInstall.ps1 +++ b/functions/public/Invoke-WPFInstall.ps1 @@ -58,7 +58,7 @@ function Invoke-WPFInstall { Write-Host "===========================================" Write-Host "-- Installs have finished ---" Write-Host "===========================================" - $sync.form.Dispatcher.Invoke([action]{ Set-WinUtilTaskbaritem -state "None" }) + $sync.form.Dispatcher.Invoke([action]{ Set-WinUtilTaskbaritem -state "None" -overlay "$env:TEMP\cttcheck.png" }) } Catch { Write-Host "===========================================" diff --git a/functions/public/Invoke-WPFUnInstall.ps1 b/functions/public/Invoke-WPFUnInstall.ps1 index 15f7918a..062190fc 100644 --- a/functions/public/Invoke-WPFUnInstall.ps1 +++ b/functions/public/Invoke-WPFUnInstall.ps1 @@ -67,7 +67,7 @@ function Invoke-WPFUnInstall { Write-Host "===========================================" Write-Host "-- Uninstalls have finished ---" Write-Host "===========================================" - $sync.form.Dispatcher.Invoke([action]{ Set-WinUtilTaskbaritem -state "None" }) + $sync.form.Dispatcher.Invoke([action]{ Set-WinUtilTaskbaritem -state "None" -overlay "$env:TEMP\cttcheck.png" }) } Catch { Write-Host "===========================================" diff --git a/functions/public/Invoke-WPFundoall.ps1 b/functions/public/Invoke-WPFundoall.ps1 index 7801744a..d6f0beab 100644 --- a/functions/public/Invoke-WPFundoall.ps1 +++ b/functions/public/Invoke-WPFundoall.ps1 @@ -38,7 +38,7 @@ function Invoke-WPFundoall { } $sync.ProcessRunning = $false - $sync.form.Dispatcher.Invoke([action]{ Set-WinUtilTaskbaritem -state "None" }) + $sync.form.Dispatcher.Invoke([action]{ Set-WinUtilTaskbaritem -state "None" -overlay "$env:TEMP\cttcheck.png" }) Write-Host "==================================" Write-Host "--- Undo Tweaks are Finished ---" Write-Host "=================================="