(Windows) STM32CubeMX uninstaller fails when username contains a space
The uninstaller.bat uses a temporary folder like:
set tmp_dir="C:\Users\%USERNAME%\AppData\Local\Temp\MX-JRE-%random%%random%"
Which on my computer becomes like:
"C:\Users\HP 8460p1\AppData\Local\Temp\MX-JRE-73025091"
Then it tries to use xcopy with this path, which does not work. The installer quits prematurely with the message "Invalid number of parameters".
Please fix.
A workaround is to edit the .bat file and hardcode the tmp_dir to some other location which does not contain any spaces.