From 378b4add9c80c2db0dd96aeb8769c5c5da3c39dc Mon Sep 17 00:00:00 2001 From: photophobic martin <80461402+smallbutfine@users.noreply.github.com> Date: Wed, 14 Jun 2023 06:32:06 +0200 Subject: [PATCH] Update NAM-Runner.bat fix: add script path for run as admin --- NAM-Runner.bat | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/NAM-Runner.bat b/NAM-Runner.bat index cdbde1a..ad231df 100644 --- a/NAM-Runner.bat +++ b/NAM-Runner.bat @@ -5,7 +5,7 @@ @echo off set NAMNAME=neural-amp-modeler-0.6.0 set NAMVER=0.6.0 -if exist %NAMNAME%\installed.txt ( +if exist %~dp0\%NAMNAME%\installed.txt ( echo NAM already installed! GOTO NAMISINSTALLED ) @@ -18,13 +18,13 @@ echo DON'T CLOSE THIS WINDOW UNTIL YOU ARE ASKED TO DO IT. echo. echo Downloading and extracting Python archive... curl -L https://github.com/winpython/winpython/releases/download/6.1.20230527/Winpython64-3.10.11.1dot.exe -o python.exe -if exist %NAMNAME% rmdir /q %NAMNAME% +if exist %~dp0\%NAMNAME% rmdir /q %~dp0\%NAMNAME% python.exe -y call %~dp0\WPy64-310111\scripts\make_winpython_movable.bat move /Y "%~dp0\WPy64-310111\python-3.10.11.amd64" "%NAMNAME%" echo Removing Python archive and unused files... -del /f /s /q WPy64-310111 1>nul -rmdir /s /q WPy64-310111 +del /f /s /q %~dp0\WPy64-310111 1>nul +rmdir /s /q %~dp0\WPy64-310111 del python.exe echo Done. cd %NAMNAME%