Skip to main content
Associate
Oct 12, 2026 11:08 AM UTC
Solved

Installer clobbers PATH

I’ve recently installed stm32cubemx2-1.1.1-X64-Windows-installer.exe on Windows 22H2, and after reboot found my PATH to be broken. I have confirmed this in a fresh VM.

Before the installer, PATH is an “Expandable String” - hex(2) is REG_EXPAND_SZ

[HKEY_CURRENT_USER\Environment]
"Path"=hex(2):43,00,3a,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,[...]

After the installer, PATH is a plain “String” / REG_SZ

[HKEY_CURRENT_USER\Environment]
"Path"="C:\\Users\\[...]

Please resolve this ASAP (checking the uninstaller too), and consider notifying users. Re-creating the key isn’t too onerous, but could be an elusive and risky fix for many.

Oussama_TROUDI
Oussama_TROUDIBest answer
ST Technical Moderator
Nov 4, 2026 12:37 PM UTC

Hello ​@Attie Grande

I’m pleased to let you know that this issue has been fixed in STM32CubeMX2 release 1.2.0.

The installer now preserves the existing Windows user Path registry value type.

Best regards,
Oussama

STM32CubeMX2 v1.2.0 released | Community

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

4 replies

SHers
Associate III
Oct 12, 2026 2:15 PM UTC

And while you’re at it, folks, please add a check to your pre-release QA to verify that your installer/uninstaller doesn’t do this. That will prevent later regressions.

Oussama_TROUDI
ST Technical Moderator
Oct 15, 2026 9:20 AM UTC

Hello ​@Attie Grande, and welcome to STCommunity,

I have submitted an internal tracking ticket for this issue. It is currently under investigation and being worked on. I will get back to you as soon as I receive more details.

Internal ticket number: CDM0066629 (This is an internal tracking number and is not accessible or usable by customers).

Best Regards
Oussama

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Oussama_TROUDI
Oussama_TROUDIBest answer
ST Technical Moderator
Nov 4, 2026 12:37 PM UTC

Hello ​@Attie Grande

I’m pleased to let you know that this issue has been fixed in STM32CubeMX2 release 1.2.0.

The installer now preserves the existing Windows user Path registry value type.

Best regards,
Oussama

STM32CubeMX2 v1.2.0 released | Community

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Associate
Nov 5, 2026 1:26 AM UTC

Fantastic, thank you!