Changes

Adding Registry Settings

409 bytes added, 09:51, 21 April 2010
Cleanup
You can use regedit to silently import = RegEdit = Windows has a registry settingsediting program called RegEdit which can be used interactively or it can be scripted. This can be useful to setup defaults for applications, or apply [http://www.winguides.com/registry/ registry tweaks for various Windows settings]. To run RegEdit interactively, run the program <code>regedit.exe</code>. To script the amendment of the registry using RegEdit, use it in the form <code>regedit.exe /s <filename>.reg</code>. You can use RegEdit from WPKG to silently import registry settings, for example:
<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.)
Normally, you would export this from regeditYou can create ready-made .exereg files by exporting registry keys from within RegEdit.
= 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]]
577
edits