2024-04-20 16:38:43 -05:00
|
|
|
function Invoke-WPFOOSU {
|
|
|
|
|
<#
|
|
|
|
|
.SYNOPSIS
|
2024-06-25 21:37:34 +02:00
|
|
|
Downloads and runs OO Shutup 10
|
2024-04-20 16:38:43 -05:00
|
|
|
#>
|
2024-06-25 21:37:34 +02:00
|
|
|
try {
|
|
|
|
|
$OOSU_filepath = "$ENV:temp\OOSU10.exe"
|
|
|
|
|
$Initial_ProgressPreference = $ProgressPreference
|
|
|
|
|
$ProgressPreference = "SilentlyContinue" # Disables the Progress Bar to drasticly speed up Invoke-WebRequest
|
|
|
|
|
Invoke-WebRequest -Uri "https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe" -OutFile $OOSU_filepath
|
|
|
|
|
Write-Host "Starting OO Shutup 10 ..."
|
2024-06-29 01:15:39 +03:00
|
|
|
Start-Process $OOSU_filepath
|
2024-08-06 23:35:17 +03:00
|
|
|
} catch {
|
2024-06-25 21:37:34 +02:00
|
|
|
Write-Host "Error Downloading and Running OO Shutup 10" -ForegroundColor Red
|
|
|
|
|
}
|
|
|
|
|
finally {
|
|
|
|
|
$ProgressPreference = $Initial_ProgressPreference
|
2024-06-29 01:15:39 +03:00
|
|
|
}
|
2024-08-06 23:35:17 +03:00
|
|
|
}
|