accept from pipe in Uninstall-MSI
This commit is contained in:
@@ -801,7 +801,7 @@ Function Get-GUIDFromMSIUninstallString ([string]$str) {
|
|||||||
Return $str.Substring($start, $end - $start)
|
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
|
# Get all of the uninstall registry keys
|
||||||
$UNINSTALL_KEYS = Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
|
$UNINSTALL_KEYS = Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
|
||||||
|
|||||||
Reference in New Issue
Block a user