mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-12-27 00:11:30 -06:00
63 lines
1.6 KiB
Markdown
63 lines
1.6 KiB
Markdown
|
# Run OO Shutup 10
|
||
|
|
||
|
Last Updated: 2024-08-07
|
||
|
|
||
|
|
||
|
!!! info
|
||
|
The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.**
|
||
|
|
||
|
|
||
|
<!-- BEGIN CUSTOM CONTENT -->
|
||
|
|
||
|
<!-- END CUSTOM CONTENT -->
|
||
|
|
||
|
<details>
|
||
|
<summary>Preview Code</summary>
|
||
|
|
||
|
```json
|
||
|
{
|
||
|
"Content": "Run OO Shutup 10",
|
||
|
"category": "z__Advanced Tweaks - CAUTION",
|
||
|
"panel": "1",
|
||
|
"Order": "a039_",
|
||
|
"Type": "Button",
|
||
|
"link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/OOSUbutton"
|
||
|
}
|
||
|
```
|
||
|
|
||
|
</details>
|
||
|
|
||
|
## Function: Invoke-WPFOOSU
|
||
|
|
||
|
```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
|
||
|
}
|
||
|
}
|
||
|
|
||
|
```
|
||
|
|
||
|
|
||
|
<!-- BEGIN SECOND CUSTOM CONTENT -->
|
||
|
|
||
|
<!-- END SECOND CUSTOM CONTENT -->
|
||
|
|
||
|
|
||
|
[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json)
|
||
|
|