From 5f8e49353628e61348b7899cf9fe6a530e4679d5 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Wed, 3 Jun 2026 13:43:59 -0500 Subject: [PATCH] chore: Update generated dev docs (#4626) --- .../OOSUbutton.md | 21 +++++++------------ 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/OOSUbutton.md b/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/OOSUbutton.md index a21db480..a610b4a5 100644 --- a/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/OOSUbutton.md +++ b/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/OOSUbutton.md @@ -5,22 +5,15 @@ description: "" ```powershell {filename="functions/public/Invoke-WPFOOSU.ps1",linenos=inline,linenostart=1} 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 + $ProgressPreference = 'SilentlyContinue' + + Invoke-WebRequest -Uri https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe -OutFile "$Env:Temp\ooshutup10.exe" + Start-Process -FilePath "$Env:Temp\ooshutup10.exe" + + $ProgressPreference = 'Continue' } catch { - Write-Host "Error Downloading and Running OO Shutup 10" -ForegroundColor Red - } - finally { - $ProgressPreference = $Initial_ProgressPreference + Write-Error "Couldn't download O&O ShutUp10. Please make sure you have an active internet connection." } } ```