Skip to content

Commit

Permalink
Drill into script directory when installing plugin (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
foodprocessor authored Oct 22, 2024
1 parent 2fe0767 commit 6007dea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install_plugin_windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6007dea

Please sign in to comment.