added check for Get-GUIDFromMSIUninstallString
This commit is contained in:
@@ -798,7 +798,9 @@ Function Get-AbsoluteURI {
|
||||
Function Get-GUIDFromMSIUninstallString ([string]$str) {
|
||||
$start = $str.IndexOf('{') + 1
|
||||
$end = $str.IndexOf('}')
|
||||
Return $str.Substring($start, $end - $start)
|
||||
$retval = $str.Substring($start, $end - $start)
|
||||
If ( $retval.Length -ne 36 ) { $retval = $null }
|
||||
Return $retval
|
||||
}
|
||||
|
||||
Function Uninstall-MSI ([Parameter(ValueFromPipeline=$true)][string[]]$APP_NAMES) {
|
||||
|
||||
Reference in New Issue
Block a user