32 lines
780 B
PowerShell
32 lines
780 B
PowerShell
<# ARRAYS/VARIABLES #>
|
|
#Beginning of Process Name to Stop - optional wildcard (*) after, without .exe, multiple: "proc1","proc2"
|
|
$Proc = @("")
|
|
|
|
#Beginning of Process Name to Wait for to End - optional wildcard (*) after, without .exe, multiple: "proc1","proc2"
|
|
$Wait = @("")
|
|
|
|
#Beginning of App Name string to Silently Uninstall (MSI/NSIS/INNO/EXE with defined silent uninstall) - required wildcard (*) after!
|
|
$App = ""
|
|
|
|
#Beginning of Desktop Link Name to Remove - optional wildcard (*) after, without .lnk, multiple: "lnk1","lnk2"
|
|
$Lnk = @("")
|
|
|
|
<# FUNCTIONS #>
|
|
. $PSScriptRoot\_Mods-Functions.ps1
|
|
|
|
<# MAIN #>
|
|
if ($Proc) {
|
|
Stop-ModsProc $Proc
|
|
}
|
|
if ($Wait) {
|
|
Wait-ModsProc $Wait
|
|
}
|
|
if ($App) {
|
|
Uninstall-ModsApp $App
|
|
}
|
|
if ($Lnk) {
|
|
Remove-ModsLnk $Lnk
|
|
}
|
|
|
|
<# EXTRAS #>
|