Greetings. I am working on a PowerShell script for an unattended install and uninstall of SketchUp 2024 to be used with Microsoft Software Center. I have successfully scripted an unattended install.
However, the unattended uninstall has an issue. The unattended uninstall script will remove the application, the installation folders and the registry entries, but it leaves the Control Panel entry behind which then must be removed manually. (See attached screenshot.) I am using the following PS command to uninstall SketchUp 2024:
Execute-MSI -Action Uninstall -Path “{Product Code here}” -Parameters “/passive /norestart” -ContinueOnError $true
In addition to the command switch “passive,” I have also tried “quiet” and “qn.” Same results.
My goal here is to completely automate the uninstall process without the need for human intervention. Any help or advice will be greatly appreciated. Thank you.
