Achja, du kannst das ganze überprüfen der Missionsdatei auch per Batch machen
Code
@echo off
title SCOTS Training Ground Launcher Lite
echo.
echo SCOTS Training Ground Launcher Lite
echo Version 1.0.4
echo (C) 2017 by SCOTS Security Ltd.
echo.
echo Pruefe Verzeichnisse
if not exist %TEMP%\SCOTS_Launcher_Lite (
md %TEMP%\SCOTS_Launcher_Lite
)
echo.
echo Pruefe Version
echo.
powershell -Command "Invoke-WebRequest https://scots.one/launcher/missionversion.txt -OutFile %TEMP%\SCOTS_Launcher_Lite\settings.txt"
(
set /p version=
)<%TEMP%\SCOTS_Launcher_Lite\settings.txt
set /a uversion=%version%
if exist "%LOCALAPPDATA%\Arma 3\MPMissionsCache\SCOTS%uversion%.altis.pbo" (goto recent) else (goto load)
:load
echo Lade aktuelle Version
echo.
echo param($version) > %TEMP%\SCOTS_Launcher_Lite\loader.ps1
echo Invoke-WebRequest -Uri "https://scots.one/launcher/SCOTS$version.altis.pbo" -OutFile "$PSScriptRoot\SCOTS$version.altis.pbo" >> %TEMP%\SCOTS_Launcher_Lite\loader.ps1
PowerShell -NoProfile -ExecutionPolicy Bypass -file %temp%\SCOTS_Launcher_Lite\loader.ps1 "%version%"
xcopy /s "%TEMP%\SCOTS_Launcher_Lite\SCOTS%uversion%.altis.pbo" "%LOCALAPPDATA%\Arma 3\MPMissionsCache\" > nul
echo Version geladen!
echo.
goto cleanup
:recent
echo Du hast bereits die aktuelle Version!
echo.
goto cleanup
:cleanup
echo Raeume auf...
echo.
RD /S /Q %TEMP%\SCOTS_Launcher_Lite
echo Fertig!
echo.
pause>nul
Alles anzeigen
Deine