mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 22:55:52 -06:00
29 lines
1.2 KiB
PowerShell
29 lines
1.2 KiB
PowerShell
|
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"
|
||
|
|
||
|
# Don't show the progress because it will slow down the download speed
|
||
|
$ProgressPreference='SilentlyContinue'
|
||
|
|
||
|
Invoke-WebRequest -Uri $url -OutFile "$env:TEMP\AdobeCreativeCloudCleanerTool.exe" -UseBasicParsing -ErrorAction SilentlyContinue -Verbose
|
||
|
|
||
|
# Revert back the ProgressPreference variable to the default value since we got the file desired
|
||
|
$ProgressPreference='Continue'
|
||
|
|
||
|
Start-Process -FilePath "$env:TEMP\AdobeCreativeCloudCleanerTool.exe" -Wait -ErrorAction SilentlyContinue -Verbose
|
||
|
|
||
|
if (Test-Path -Path "$env:TEMP\AdobeCreativeCloudCleanerTool.exe") {
|
||
|
Write-Host "Cleaning up..."
|
||
|
Remove-Item -Path "$env:TEMP\AdobeCreativeCloudCleanerTool.exe" -Verbose
|
||
|
}
|
||
|
}
|