winutil/functions/public/Invoke-WPFOOSU.ps1
Martin Wiethan de424ce636
Remove oosu essential tweak (#2099)
* Compile Winutil

* Remove the Essential OO Tweak Checkbox, Rename the OO Button and simplify the OO Script

* Remove The Entire 'Adding: Config *.cfg' Compilation Process

---------

Co-authored-by: Marterich <Marterich@users.noreply.github.com>
Co-authored-by: Mr.k <mineshtine28546271@gmail.com>
2024-06-25 14:37:34 -05:00

20 lines
719 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
}
}