INtallationstool geschrieben, dass den Pfad auf diesen bin Ordner in der Umgebung der Maschine einträgt

This commit is contained in:
Michael Stangl
2026-06-10 10:38:00 +02:00
parent acbcb89aa7
commit db4eb88d89
3 changed files with 58 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
@echo off
REM ================================================================
REM install_tools.bat - TOOLS_BIN dauerhaft in User-PATH eintragen
REM ================================================================
REM Einmalig ausfuehren. Danach sind alle bin/-Skripte in jeder
REM neuen Shell direkt verfuegbar (ohne Pfadangabe).
REM ================================================================
call "%~dp0setenv.bat"
powershell -NoProfile -Command "$p=[Environment]::GetEnvironmentVariable('PATH','User'); if ($p -notlike ('*' + $env:TOOLS_BIN + '*')) { [Environment]::SetEnvironmentVariable('PATH', $p + ';' + $env:TOOLS_BIN, 'User'); Write-Host '[OK] TOOLS_BIN zum User-PATH hinzugefuegt: ' $env:TOOLS_BIN } else { Write-Host 'TOOLS_BIN ist bereits im PATH enthalten.' }"
echo.
echo Neues CMD-Fenster oeffnen, damit der geaenderte PATH wirksam wird.
echo.