577
edits
Changes
Cleanup
<source lang="xml">
<package
id="sample_registry"
name="Shows Adds the contents of a .reg file to the registry entry"
revision="1"
priority="0"
<code>test_registry.reg</code>:
<source lang="reg">
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Test]
"Test Setting"=dword:00000001
[-HKEY_LOCAL_MACHINE\SOFTWARE\TEST2]
</source>
(In Win2kWindows 2000/XP , adding "-" in front of a key name causes that key to be deleted from the registry.)
= Reg =
Alternatively, in most modern versions of included with Windows2000 Resource Kit, or with Windows XP itself, there is also a command line registry editor, reg.exe. This , that can add/delete/modify registry keys without be used more directly from the need for a command-line.reg file.The matching install command to the above For example would be:<code><pre>REG ADD HKLM\SOFTWARE\Test /v "Test Setting" /d "1" /t REG_DWORD</pre></code>
----
[[Category: Silent Installers]]
[[Category: Changing Windows settings]]