mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 14:45:52 -06:00
Compile Winutil
This commit is contained in:
parent
4ac5b79fc8
commit
4de1ac39ef
@ -3890,6 +3890,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'
|
||||||
|
|
||||||
@ -3899,11 +3900,14 @@ 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
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
function Invoke-WPFRunspace {
|
function Invoke-WPFRunspace {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user