Unattended uninstall leaves SketchUp entry in the Control Panel

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.

A valid silent removal would look like

“C:\Program Files (x86)\InstallShield Installation Information{254252d5-9a26-4c38-bc17-6283e2fd9316}\SketchUp-2024-0-594-241.exe” -remove -runfromtemp

So I think some of your script is setup wrong - it’s not an MSI that is triggered in the control panel - the SketchUp installer actually installs several MSI as part of that EXE.

In powershell you’d want

Start-Process “C:\Program Files (x86)\InstallShield Installation Information{254252d5-9a26-4c38-bc17-6283e2fd9316}\SketchUp-2024-0-594-241.exe” `
-ArgumentList “-remove -runfromtemp -silent” -Wait

1 Like

Thank you. That worked.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.