Warning · Test quality
Impact
Both tests would still pass if the installer silently converted an existing `REG_SZ` user PATH to `REG_EXPAND_SZ`.
Recommended action
Add an integration case that seeds `REG_SZ`, runs the installer with a new directory, and checks the persisted text and registry kind before restoring the original value.