From 5d22da12f3f67b2f038cf29a6d60c812eb09a6f2 Mon Sep 17 00:00:00 2001 From: Roman E Date: Thu, 18 Feb 2021 15:11:00 +0300 Subject: [PATCH] install_windows: restart script elevated if no Admin rights detected --- install_windows.bat | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install_windows.bat b/install_windows.bat index 9ce072e..b5df282 100644 --- a/install_windows.bat +++ b/install_windows.bat @@ -24,9 +24,9 @@ CLS ) else ( echo [Deemix Installer] Failed: Please start the install_windows.bat with 'Run as Administrator' echo %DATE% %TIME% - Checking permissions - No Admin rights >> "%~dp0log.txt" - TITLE Please run as admin - pause - exit /b + echo Admin Elevation required. Restarting this script as Admin: + powershell -Command "& { Start-Process '%0' -ArgumentList '%cd%' -Verb runAs }" + goto:eof ) :: Check for Python Installation -- GitLab