Do we have any sample codes on automating SSMS Upgrade using powershell where if SSMS17 is installed the script should uninstall SSMS 17 and install SSMS18. The code works for installation , but the uninstallation part is not working.
Thanks in advance,