make sure that we dont directly start as admin

This commit is contained in:
Mylloon 2024-07-02 11:12:26 +02:00
parent 76cf4f8543
commit 76887a179f
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -35,7 +35,7 @@ fltmc >NUL 2>&1 || (
PowerShell -Command "Stop-Process -Name Spotify -ErrorAction SilentlyContinue" PowerShell -Command "Stop-Process -Name Spotify -ErrorAction SilentlyContinue"
:: Start as administrator :: Start as administrator
PowerShell Start -Verb RunAs '%0' 2>NUL || ( PowerShell Start -Verb RunAs "%0 noskipadmin" 2>NUL || (
EXIT 1 EXIT 1
) )
EXIT 0 EXIT 0
@ -44,6 +44,8 @@ fltmc >NUL 2>&1 || (
:: => ADMIN RIGHTS <= :: => ADMIN RIGHTS <=
IF NOT "%1"=="noskipadmin" EXIT 0
:: === Registery modifications == :: === Registery modifications ==
ECHO Registery entries... ECHO Registery entries...
:: Right click of Windows 10 :: Right click of Windows 10