Compare commits

...

8 Commits

Author SHA1 Message Date
65efc97ca0 Merge branch 'test-2024-02-07-refactor-noapps' into Improve-Adobe-CC-Cleaner-tool-handling 2024-02-21 19:31:47 -06:00
fb49fb9efa Improve handling of Adobe's CC Cleaner tool
This PR implements a try-catch-finally struct to do a better handling of Adobe's Creative Cloud Cleaner tool downloading and running of such program.

This will allow to see any errors that occurs if the URL changes, the tool fails to run, or anything else.

I also have moved the cleaning up process to the finally part of the structure, as it makes the most sense.

This tries to fix or sanitize the issue #1563.
2024-02-20 18:37:06 +00:00
31c6622926 Update close-old-issues.yaml 2024-02-19 21:43:49 -06:00
e745d798b1 Update close-old-issues.yaml 2024-02-19 18:43:44 -06:00
a29364984b Merge branch 'main' of https://github.com/ChrisTitusTech/winutil 2024-02-19 18:39:32 -06:00
07eeed310b Update close-old-issues.yaml 2024-02-19 18:39:24 -06:00
8e00077e50 Compile Winutil 2024-02-20 00:32:36 +00:00
fc505872d2 Update close-old-issues.yaml 2024-02-19 18:32:13 -06:00

View File

@ -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
} }
} }
}