Jonathan

home

Articles

projects

tools

contact

Jonathan

Setup adobe uninstaller

First published:

Script to check if the executable exists

if (Test-Path -Path "C:\Program Files\Adobe Uninstaller\AdobeUninstaller.exe") { exit 0 } else { exit 1 }

Download the uninstaller straight from Adobe's servers

if (! (Test-Path -Path "C:\Program Files\Adobe Uninstaller\AdobeUninstaller.exe")) { $uninstallerUrl = "https://deploymenttools.acp.adobeoobe.com/Uninstall/Win/AdobeUninstaller.zip" $tempZipPath = "$env:TEMP\AdobeUninstaller.zip" Invoke-WebRequest -Uri $uninstallerUrl -OutFile $tempZipPath $extractPath = "C:\Program Files\Adobe Uninstaller" Expand-Archive -Path $tempZipPath -DestinationPath $extractPath -Force }

You can also find me on these sites

GitHubLinkedInStackOverflowEduGeekMicrosoft LearnMicrosoft CommunityCodeStats

© 2024 Jonathan