accept from pipe in Uninstall-MSI

This commit is contained in:
2023-08-22 16:24:39 -04:00
parent 3929a896ed
commit f21e5ff768
+1 -1
View File
@@ -801,7 +801,7 @@ Function Get-GUIDFromMSIUninstallString ([string]$str) {
Return $str.Substring($start, $end - $start)
}
Function Uninstall-MSI ([string]$APP_NAME) {
Function Uninstall-MSI ([Parameter(ValueFromPipeline=$true)][string]$APP_NAME) {
# Get all of the uninstall registry keys
$UNINSTALL_KEYS = Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall