mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-07-03 03:23:31 -05:00
Compare commits
2 Commits
24.06.29
...
9061245887
Author | SHA1 | Date | |
---|---|---|---|
9061245887 | |||
841f87564a |
@ -11,6 +11,7 @@ function Invoke-WPFRunAdobeCCCleanerTool {
|
|||||||
Write-Host "The Adobe Creative Cloud Cleaner tool is hosted at"
|
Write-Host "The Adobe Creative Cloud Cleaner tool is hosted at"
|
||||||
Write-Host "$url"
|
Write-Host "$url"
|
||||||
|
|
||||||
|
try {
|
||||||
# Don't show the progress because it will slow down the download speed
|
# Don't show the progress because it will slow down the download speed
|
||||||
$ProgressPreference='SilentlyContinue'
|
$ProgressPreference='SilentlyContinue'
|
||||||
|
|
||||||
@ -20,9 +21,12 @@ function Invoke-WPFRunAdobeCCCleanerTool {
|
|||||||
$ProgressPreference='Continue'
|
$ProgressPreference='Continue'
|
||||||
|
|
||||||
Start-Process -FilePath "$env:TEMP\AdobeCreativeCloudCleanerTool.exe" -Wait -ErrorAction SilentlyContinue -Verbose
|
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") {
|
if (Test-Path -Path "$env:TEMP\AdobeCreativeCloudCleanerTool.exe") {
|
||||||
Write-Host "Cleaning up..."
|
Write-Host "Cleaning up..."
|
||||||
Remove-Item -Path "$env:TEMP\AdobeCreativeCloudCleanerTool.exe" -Verbose
|
Remove-Item -Path "$env:TEMP\AdobeCreativeCloudCleanerTool.exe" -Verbose
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user