mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-06-04 14:17:27 +00:00
chore: Update generated dev docs (#4626)
This commit is contained in:
@@ -5,22 +5,15 @@ description: ""
|
|||||||
|
|
||||||
```powershell {filename="functions/public/Invoke-WPFOOSU.ps1",linenos=inline,linenostart=1}
|
```powershell {filename="functions/public/Invoke-WPFOOSU.ps1",linenos=inline,linenostart=1}
|
||||||
function Invoke-WPFOOSU {
|
function Invoke-WPFOOSU {
|
||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Downloads and runs OO Shutup 10
|
|
||||||
#>
|
|
||||||
try {
|
try {
|
||||||
$OOSU_filepath = "$ENV:temp\OOSU10.exe"
|
$ProgressPreference = 'SilentlyContinue'
|
||||||
$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 "$Env:Temp\ooshutup10.exe"
|
||||||
Invoke-WebRequest -Uri "https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe" -OutFile $OOSU_filepath
|
Start-Process -FilePath "$Env:Temp\ooshutup10.exe"
|
||||||
Write-Host "Starting OO Shutup 10 ..."
|
|
||||||
Start-Process $OOSU_filepath
|
$ProgressPreference = 'Continue'
|
||||||
} catch {
|
} catch {
|
||||||
Write-Host "Error Downloading and Running OO Shutup 10" -ForegroundColor Red
|
Write-Error "Couldn't download O&O ShutUp10. Please make sure you have an active internet connection."
|
||||||
}
|
|
||||||
finally {
|
|
||||||
$ProgressPreference = $Initial_ProgressPreference
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user