mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-12-22 14:01:31 -06:00
1891ea7966
* Remove All Trailing Whitespace Characters in '.ps1' Files * Remove All Trailing Whitespace Characters in '.json' Files * Remove All Trailing Whitespace Characters in '.yaml' Files * Remove All Trailing Whitespace Characters in Different Files * Remove Even More Trailing Whitespace Characters
20 lines
712 B
PowerShell
20 lines
712 B
PowerShell
function Invoke-WPFOOSU {
|
|
<#
|
|
.SYNOPSIS
|
|
Downloads and runs OO Shutup 10
|
|
#>
|
|
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 ..."
|
|
Start-Process $OOSU_filepath
|
|
}
|
|
catch {
|
|
Write-Host "Error Downloading and Running OO Shutup 10" -ForegroundColor Red
|
|
}
|
|
finally {
|
|
$ProgressPreference = $Initial_ProgressPreference
|
|
}
|
|
} |