We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ca0710 commit 5df3299Copy full SHA for 5df3299
Sources/Winget-AutoUpdate/functions/Update-App.ps1
@@ -28,7 +28,11 @@ Function Update-App ($app) {
28
#If PreInstall script exist
29
if ($ModsPreInstall) {
30
Write-ToLog "Modifications for $($app.Id) before upgrade are being applied..." "DarkYellow"
31
- & "$ModsPreInstall"
+ $preInstallResult = & "$ModsPreInstall"
32
+ if ($preInstallResult -eq $false) {
33
+ Write-ToLog "PreInstall script for $($app.Id) requested to skip this update" "Yellow"
34
+ continue # Skip to next app in the parent loop
35
+ }
36
}
37
38
# Define upgrade base parameters
0 commit comments