This commit is contained in:
Mylloon 2024-09-12 21:23:00 +02:00
parent dfe0ae6211
commit f498635760
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -0,0 +1,23 @@
@ECHO OFF
:: Start as administrator
fltmc >NUL 2>&1 || (
PowerShell Start -Verb RunAs '%0' 2>NUL || (
EXIT 1
)
EXIT 0
)
ECHO Outer Wilds Mod Manager...
PowerShell -Command "" ^
"$repo = 'ow-mods/ow-mod-man';" ^
"$releases = \"https://api.github.com/repos/$repo/releases/latest\";" ^
"$link = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].assets.browser_download_url[7];" ^
"$exe = 'Outer.Wilds.Mod.Manager-setup.msi';" ^
"$outFile = Join-Path -Path $env:TEMP -ChildPath $exe;" ^
"Invoke-WebRequest -Uri $link -OutFile $outFile;" ^
"Start-Process -Wait $outFile '/quiet', '/passive', '/qn';" ^
"Remove-Item -Force $outFile"
IF NOT "%1"=="yes" PAUSE
EXIT /B