add as admin

This commit is contained in:
Mylloon 2024-12-29 16:34:53 +01:00
parent 1c9f4ae687
commit b098de64ad
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -1,6 +1,14 @@
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
:: Start as administrator
fltmc >NUL 2>&1 || (
PowerShell Start -Verb RunAs '%0' 2>NUL || (
EXIT 1
)
EXIT 0
)
SET "collapse=%LOCALAPPDATA%\CollapseLauncher\current"
SET "exe=CollapseLauncher.exe"
SET "iconpath=Assets\Images\GameIcon"