2024-02-02 16:22:08 -06:00
|
|
|
function Invoke-WPFRunAdobeCCCleanerTool {
|
|
|
|
<#
|
|
|
|
.SYNOPSIS
|
|
|
|
It removes or fixes problem files and resolves permission issues in registry keys.
|
|
|
|
.DESCRIPTION
|
|
|
|
The Creative Cloud Cleaner tool is a utility for experienced users to clean up corrupted installations.
|
|
|
|
#>
|
|
|
|
|
|
|
|
[string]$url="https://swupmf.adobe.com/webfeed/CleanerTool/win/AdobeCreativeCloudCleanerTool.exe"
|
|
|
|
|
|
|
|
Write-Host "The Adobe Creative Cloud Cleaner tool is hosted at"
|
|
|
|
Write-Host "$url"
|
|
|
|
|
2024-02-21 19:32:14 -06:00
|
|
|
try {
|
|
|
|
# Don't show the progress because it will slow down the download speed
|
|
|
|
$ProgressPreference='SilentlyContinue'
|
2024-02-02 16:22:08 -06:00
|
|
|
|
2024-02-21 19:32:14 -06:00
|
|
|
Invoke-WebRequest -Uri $url -OutFile "$env:TEMP\AdobeCreativeCloudCleanerTool.exe" -UseBasicParsing -ErrorAction SilentlyContinue -Verbose
|
2024-02-02 16:22:08 -06:00
|
|
|
|
2024-02-21 19:32:14 -06:00
|
|
|
# Revert back the ProgressPreference variable to the default value since we got the file desired
|
|
|
|
$ProgressPreference='Continue'
|
2024-02-02 16:22:08 -06:00
|
|
|
|
2024-02-21 19:32:14 -06:00
|
|
|
Start-Process -FilePath "$env:TEMP\AdobeCreativeCloudCleanerTool.exe" -Wait -ErrorAction SilentlyContinue -Verbose
|
|
|
|
} catch {
|
|
|
|
Write-Error $_.Exception.Message
|
|
|
|
} finally {
|
|
|
|
if (Test-Path -Path "$env:TEMP\AdobeCreativeCloudCleanerTool.exe") {
|
|
|
|
Write-Host "Cleaning up..."
|
|
|
|
Remove-Item -Path "$env:TEMP\AdobeCreativeCloudCleanerTool.exe" -Verbose
|
|
|
|
}
|
2024-02-02 16:22:08 -06:00
|
|
|
}
|
|
|
|
}
|