From d3318d815bbb120092c51bb985c551751da41974 Mon Sep 17 00:00:00 2001 From: Michael Habinsky Date: Thu, 5 Sep 2024 15:54:30 -0600 Subject: [PATCH] Drill into script directory when installing plugin --- install_plugin_windows.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install_plugin_windows.bat b/install_plugin_windows.bat index 2ca9947..752211d 100644 --- a/install_plugin_windows.bat +++ b/install_plugin_windows.bat @@ -4,11 +4,11 @@ :: Check / get privileges net file 1>NUL 2>NUL if not '%errorlevel%' == '0' ( - powershell Start-Process -FilePath "%0" -ArgumentList "%cd%" -verb runas >NUL 2>&1 + powershell Start-Process -FilePath "%0" -verb runas >NUL 2>&1 exit /b ) else ( :: If we just got privileges, drill back into the directory where the script is - cd /d %1 + cd /d %~dp0 ) :: Find the installer file