Hello,
I’ve been working on using PSADT, specifically the Get-InstalledApplication to look for Zoom on the computer and if the version is less than 5.17.0 uninstall it using CleanZoom.exe
I tested the script on a couple different computers and it works on some but not all. I’ve narrowed it down to the my comparison statement for version numbers and the comparison operators not being able to deal with versioning in the x.xx.xxxxx format. Here’s a sample of my code, I’m hoping you folks can help me figure out a good way to be able to get it to accept the version number format and properly execute my If statement.
$ZoomVersion = Get-InstalledApplication "Zoom" | select-Object DisplayVersion -expand DisplayVersion
If ($ZoomVersion -lt 5.17){
Execute-Process -Path 'CleanZoom.exe' -Parameters '/silent' -WindowStyle 'Hidden'
}
Thanks for any assistance you can offer!