S
S
Shepard2016-02-04 11:53:18
Programming
Shepard, 2016-02-04 11:53:18

How to create a .reg file that changes the value of the REG_SZ type?

I'm trying to create a .reg file that would change the "installation language" setting from "1033" to "1049", located at "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\gamersfirst\apb\1".
I write:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\gamersfirst\apb\1]
"installation language"=hex(1):1049

It doesn't throw an error, but the value doesn't change.
244b81468fd546d6854959124932c9b1.png
Tried also:
"installation language"=1049
"installation language"=reg_sz:1049

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Shepard, 2016-02-04
@Shepard

Understood. First you need to remove the old value, then add a new one.
Correct code:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\gamersfirst\apb\1]
"installation language"=-

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\gamersfirst\apb\1]
"installation language"="1049"

It really doesn't need to be removed. You can simply:
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\gamersfirst\apb\1]
"installation language"="1049"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question