Skip to content

Commit cdb01db

Browse files
committed
attempt to fancy fix the windows install script.
1 parent 04c8b38 commit cdb01db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

attachments/simple_engine/install_dependencies_windows.bat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ if not exist "C:\Program Files\Slang" (
156156

157157
REM Add Slang to PATH (requires restart or new command prompt)
158158
echo Adding Slang to system PATH...
159-
setx PATH "%PATH%;C:\Program Files\Slang\bin" /M
159+
for /f "tokens=2*" %%A in ('reg query "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v PATH') do set "CURRENT_PATH=%%B"
160+
setx PATH "%CURRENT_PATH%;C:\Program Files\Slang\bin" /M
160161
echo Note: You may need to restart your command prompt for Slang to be available in PATH
161162
) else (
162163
echo Failed to download Slang compiler. Please install manually from:

0 commit comments

Comments
 (0)