2023-10-31 12:20:46 +01:00
|
|
|
|
<#
|
2021-12-01 08:20:46 +01:00
|
|
|
|
.SYNOPSIS
|
|
|
|
|
Installs OBS Studio (needs admin rights)
|
|
|
|
|
.DESCRIPTION
|
2022-01-29 12:47:46 +01:00
|
|
|
|
This PowerShell script installs OBS Studio (admin rights are needed).
|
2021-12-01 08:20:46 +01:00
|
|
|
|
.EXAMPLE
|
2023-08-06 21:35:36 +02:00
|
|
|
|
PS> ./install-obs-studio.ps1
|
2021-12-01 08:20:46 +01:00
|
|
|
|
.LINK
|
|
|
|
|
https://github.com/fleschutz/PowerShell
|
2022-01-29 12:47:46 +01:00
|
|
|
|
.NOTES
|
2022-09-06 21:42:04 +02:00
|
|
|
|
Author: Markus Fleschutz | License: CC0
|
2021-12-01 08:20:46 +01:00
|
|
|
|
#>
|
|
|
|
|
|
|
|
|
|
#Requires -RunAsAdministrator
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
|
|
|
|
|
|
|
|
|
if ($IsLinux) {
|
|
|
|
|
"Sorry, not supported yet."
|
|
|
|
|
} else {
|
|
|
|
|
winget install obsproject.obsstudio
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
|
|
|
|
"✔️ installed OBS Studio in $Elapsed sec"
|
|
|
|
|
exit 0 # success
|
|
|
|
|
} catch {
|
2022-04-13 12:06:32 +02:00
|
|
|
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
2021-12-01 08:20:46 +01:00
|
|
|
|
exit 1
|
|
|
|
|
}
|