Skip to content

Commit 54316a0

Browse files
committed
fix(bat): if elevated flag present but admin check fails, continue instead of exiting
- Avoids sudden window close after UAC approval on systems where admin detection is unreliable
1 parent 0345ec6 commit 54316a0

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

SystemTester.bat

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,10 @@ fltmc >nul 2>&1 && goto :ADMIN_CONFIRMED
2828
:: Not admin - check if this is retry after elevation attempt
2929
if /i "%_ELEV_FLAG%"=="/elevated" (
3030
echo.
31-
echo [ERROR] Elevation failed or was cancelled.
32-
echo Right-click and choose "Run as administrator"
31+
echo [WARNING] Admin status could not be verified after elevation.
32+
echo Continuing anyway; some tests may be limited.
3333
echo.
34-
pause
35-
exit /b 1
34+
goto :ADMIN_CONFIRMED
3635
)
3736

3837
:: Request elevation

0 commit comments

Comments
 (0)