i could fix my problem with
Root cause: The TEMP and TMP environment variables are missing.
Step 1: Open Command Prompt as Administrator.
- Open Start, type cmd, right-click “Command Prompt”, choose “Run as administrator”.
Step 2: Ensure temp folders exist and set the variables. Run these lines one by one:
mkdir "%USERPROFILE%\AppData\Local\Temp" 2>nul
mkdir "C:\Windows\Temp" 2>nul
setx TEMP "%USERPROFILE%\AppData\Local\Temp"
setx TMP "%USERPROFILE%\AppData\Local\Temp"
setx TEMP "C:\Windows\Temp" /M
setx TMP "C:\Windows\Temp" /M
Step 3: Sign out and back in (or reboot).
Step 4: Verify the variables:
echo %TEMP%
echo %TMP%
Both commands should print real paths.
Step 5: Clean up PATH and remove empty entries.
Control Panel -> System -> Advanced system settings -> Environment Variables -> edit PATH.
Remove double semicolons ;; and broken entries (e.g., “C:\Program”).