How to Uninstall Zoom via PowerShell When Facing Package Issues?
Asked by
planetarium.seat
I'm working on a script to uninstall the current version of Zoom and install the latest 64-bit version across multiple computers that haven't been updated. I have about 40 machines running either a 32-bit version or older 64-bit versions of Zoom. I've written a script that attempts to locate the installed version for both architectures and run an uninstall command using msiexec. However, when I check the log, it shows a missing package error. It seems that Windows sometimes caches the install files, but I suspect they might get cleaned out over time. I also tried using Uninstall-Package, but that failed as well, with a message indicating that a necessary log file doesn't exist. Is there a more reliable way to handle the uninstallation process without running into these issues?
Answers
Have you tried using cleanzoom first and then running your new installer right after? This method helps clear out the old version before installing the new one.
Reply to this answer
You might want to supply the MSI installer with your Win32 app as the uninstall MSI instead of using the GUID directly. This ensures youโre correctly referencing the right uninstall package for whatโs currently installed.
Reply to this answer
You could explore using WinGet for the uninstallation process. It's a neat tool for managing apps on Windows, and you can run commands like `winget upgrade zoom.zoom` to handle upgrades or might be able to set it up for uninstalls.
Reply to this answer
If you're still running into issues, check out this community post for some automated solutions to missing MSI package problems. It's a great resource: [Fix Missing MSI PowerShell Automate](https://www.reddit.com/r/PowerShell/comments/1o0ra2l/release_fixmissingmsipowershell_automate/)!
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions