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

30 lines
610 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) {
2023-11-25 21:39:37 +00:00
try {
Write-ToLog "...succesfully done something" "Green"
}
catch {
Write-ToLog "...failed to do something" "Red"
}
}
}
else {
Write-ToLog "...nothing defined for $($app.Id)" "Yellow"
}