Discussion Locked

Registry edits via inf files

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

HI,

I am building an unattended setup for NT workstations.
I know how to use the AddReg function to add string values to the registry, how can I add dword or hex values to the registry using this method?

Thanks in advance,

Eduard de Vriesedevries@footlocker.com

4 replies

by halleyc

I change registry value by using the following method

1.start regedit.exe
2.find out the key value that i want to change at my pc
3.change the value
4.File > Export
5.type the filename
6.make sure to select "export selected key"
7.OK

youwill get a reg file (for example yourfile.reg). The reg file is a pure text file. You can edit it by using text editor such as notepad. You can learn how to type/edit dword or hex value in the exported reg file

To make change to the registry on other machine, just type "regedit /s yourfile.reg" at dos prompt of target machine.

by edrox

I know how to do this, but I do not like it to use reg files and ini files if I can do all through ini files, it will make it all more simple, documentation and handover will be a lot easier.

Thanks for trying to help me,

Eduard de Vries

by lewey04

Here is Microsoft's answer to your question:

Notice the second paragraph answers you question about adding dword and hex values with the AddReg function. Unfortunately, the answer probably isn't the one you wanted to here. However you can accomplish what you need using the RegSetValueEx in an application (I don't know if you are a programmer or not)

Q163357
SUMMARY
=======
In general, you may have various types of registry entries including binary,
DWORD, DWORD little-endian, DWORD big-endian, Unicode symbolic link, array of
null-terminated strings, device-driver resource list, and null-terminated string
(with or without unexpanded references).

HERE IS YOUR ANSWER
However, an inf AddReg section value type is limited to either an ANSI string or
a number in hexadecimal notation and Intel format. Setupx.dll does not recognize
any other value types in AddReg sections. You can set other registry value types
from an application using RegSetValueEx.

by edrox

Do I have to be honest, didn't help me at all.
OK, I admit, it did help me, but didn't gave me the answer I wanted.

Eventhough it answered my question.
And no, I am not a programmer, just a simple networking guy tring to get along, I hope to get into programming one day, but as long as MS and Novell keep trowing updates and releases at the speed they do, I will never have time.

Thanks for helping me!

Eduard de Vries
de_vries@hotmail.com

This discussion is closed to new replies.