From b098de64ad0183dc8f2db75e9ee576bc89a3313d Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 29 Dec 2024 16:34:53 +0100 Subject: [PATCH] add as admin --- windows/apply_mihoyo_shortcut.bat | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/windows/apply_mihoyo_shortcut.bat b/windows/apply_mihoyo_shortcut.bat index 5100df3..0033379 100644 --- a/windows/apply_mihoyo_shortcut.bat +++ b/windows/apply_mihoyo_shortcut.bat @@ -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"