wingetautoupdate/Sources/Winget-AutoUpdate/mods/_WAU-notinstalled-template.ps1

30 lines
598 B
PowerShell
Raw Normal View History

2023-11-25 21:39:37 +00:00
<# An all-purpose mod for doing things
if an AppID upgrade/install in WAU fails
Name it:
"$Mods\_WAU-notinstalled.ps1"
This all-purpose mod will be overridden by any specific:
"$Mods\AppID-notinstalled.ps1"
#>
<# FUNCTIONS #>
. $PSScriptRoot\_Mods-Functions.ps1
<# ARRAYS/VARIABLES #>
<# MAIN #>
if ($($app.Id) -eq "Microsoft.SQLServerManagementStudio") {
2023-11-26 10:07:47 +00:00
if ($ConfirmInstall -eq $false) {
2024-09-02 14:10:21 +00:00
try {
Write-ToLog "...succesfully done something" "Green"
2023-11-25 21:39:37 +00:00
}
catch {
2024-09-02 14:10:21 +00:00
Write-ToLog "...failed to do something" "Red"
2023-11-25 21:39:37 +00:00
}
}
}
else {
Write-ToLog "...nothing defined for $($app.Id)" "Yellow"
}