I have a bundle where I need to add a registry key with the variable %username% to HKEY_LOCAL_MACHINE

If I run it as system, it does not enter the value, but leaves %username% as the value (does not resolve the variable).

If I run it as user, it does work and adds the username value, but it only works if the user has administrative rights on the workstation.

How do I run it when the user does not have administrative rights on the workstation?