Jump to content

While watching the whole "switching to mac" series, it was revealed that the LTT internal OBS setup guide has 3000+ words...

 

And since I've been tinkering with automating my own customized windows setup, I figured I can quickly adapt one of my scripts install AND CONFIGURE OBS with one click! (technically two clicks to run the .cmd file)

 

This should be able to take your fresh windows install PC from "no obs" to "obs installed and fully configured to your liking" within seconds (and more importantly, without the posibility of human error!)

AutoOBS.zip

Link to comment
https://linustechtips.com/topic/1614947-automagic-obs-installer-configurator/
Share on other sites

Link to post
Share on other sites

For all our safety, it would be great if your would post code here for inspection or host it at public platform such as Github for same reasons. Asking others to run zipped script is bit suspicios while I'm sure your intentions are ok.

^^^^ That's my post ^^^^
<-- This is me --- That's your scrollbar -->
vvvv Who's there? vvvv

Link to post
Share on other sites

On 6/18/2025 at 11:24 AM, LogicalDrm said:

For all our safety, it would be great if your would post code here for inspection or host it at public platform such as Github for same reasons. Asking others to run zipped script is bit suspicios while I'm sure your intentions are ok.

The code is pretty simple and easy to follow since it's basically ~40 lines of code. checking those two script files before running them should make it super obvious that there's nothing malicious in that code

Link to post
Share on other sites

7 hours ago, xelu said:

The code is pretty simple and easy to follow since it's basically ~40 lines of code. checking those two script files before running them should make it super obvious that there's nothing malicious in that code

So why not posting it here? "you should and can" feels like excuse when you claim it's simple and takes about same time as replying. 

^^^^ That's my post ^^^^
<-- This is me --- That's your scrollbar -->
vvvv Who's there? vvvv

Link to post
Share on other sites

1 hour ago, xelu said:

 

How hard is it to paste the code here?

@echo off 
setlocal EnableDelayedExpansion

echo Installing OBS

net session >nul 2>&1
if %errorLevel%==0 (
    powershell.exe -ExecutionPolicy Bypass -File "%~dp0chocolatey.ps1" obs-studio

    echo Copying config files
    
    xcopy "%~dp0obs-studio" "%USERPROFILE%\AppData\Roaming\obs-studio" /E /I /Y /Q

) else (
    echo Please make sure you run with Admin privileges
    echo -----------------------------------
)

 

# To Make run script as admin 
param([switch]$Elevated)

function Test-Admin {
    $currentUser = New-Object Security.Principal.WindowsPrincipal $([Security.Principal.WindowsIdentity]::GetCurrent())
    $currentUser.IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)
}

if ((Test-Admin) -eq $false)  {
    if ($elevated) {
        # tried to elevate, did not work, aborting
    } else {
        Start-Process powershell.exe -Verb RunAs -ArgumentList ('-noprofile -noexit -file "{0}" -elevated' -f ($myinvocation.MyCommand.Definition))
    }
    exit
}

# To check if chocolaty is installed, if not install it
If(Test-Path -Path "$env:ProgramData\chocolatey") {
    Write-Output "Seems Chocolatey is installed"
    }
Else {
    Write-Output "Seems Chocolatey is not installed, installing now"
    Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
    choco feature enable -n allowGlobalConfirmation
    }

ForEach ($arg in $args)
{
    choco install $arg -y -limitoutput --ignore-checksum
}

Write-Output "-------------------------------------------"
Write-Output "---------------  ALL DONE!  ---------------"
Write-Output "-------------------------------------------"

 

And this is why it's important to look at this stuff, because you're not just installing OBS, but also Chocolatey. Not that that in and of itself is a problem, but you're being needlessly intransparent and obstinate.

And now a word from our sponsor: 💩

-.-. --- --- .-.. --..-- / -.-- --- ..- / -.- -. --- .-- / -- --- .-. ... . / -.-. --- -.. .

ᑐᑌᑐᑢ

Spoiler

    ▄██████                                                      ▄██▀

  ▄█▀   ███                                                      ██

▄██     ███                                                      ██

███   ▄████  ▄█▀  ▀██▄    ▄████▄     ▄████▄     ▄████▄     ▄████▄██   ▄████▄

███████████ ███     ███ ▄██▀ ▀███▄ ▄██▀ ▀███▄ ▄██▀ ▀███▄ ▄██▀ ▀████ ▄██▀ ▀███▄

████▀   ███ ▀██▄   ▄██▀ ███    ███ ███        ███    ███ ███    ███ ███    ███

 ██▄    ███ ▄ ▀██▄██▀    ███▄ ▄██   ███▄ ▄██   ███▄ ▄███  ███▄ ▄███▄ ███▄ ▄██

  ▀█▄    ▀█ ██▄ ▀█▀     ▄ ▀████▀     ▀████▀     ▀████▀▀██▄ ▀████▀▀██▄ ▀████▀

       ▄█ ▄▄      ▄█▄  █▀            █▄                   ▄██  ▄▀

       ▀  ██      ███                ██                    ▄█

          ██      ███   ▄   ▄████▄   ██▄████▄     ▄████▄   ██   ▄

          ██      ███ ▄██ ▄██▀ ▀███▄ ███▀ ▀███▄ ▄██▀ ▀███▄ ██ ▄██

          ██     ███▀  ▄█ ███    ███ ███    ███ ███    ███ ██  ▄█

        █▄██  ▄▄██▀    ██  ███▄ ▄███▄ ███▄ ▄██   ███▄ ▄██  ██  ██

        ▀███████▀    ▄████▄ ▀████▀▀██▄ ▀████▀     ▀████▀ ▄█████████▄

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×