It depends on the type of the Registry value. REG_EXPAND_SZ values will have the environment variables expanded when read, REG_SZ values will not. Either type may appear under the ...\Run\ subkey. It's clearly a mistake to use an environment variable in REG_SZ data, if the application reading it expects to get the expanded version. Paths with environment variables are not relative paths. share | edit answered Dec 27 '16 at 0:48 kreemoweet 3,001 10 12 So how does the author specifically solve their problem – Ramhound Dec 27 '16 at 3:06 help add a comment |
Muito bem, rápida olhada com regjump (rj HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Run)
Está funcionando agora, então acho que não era reg_expand_sz antes?