Changes

Adding Registry Settings

172 bytes added, 17:31, 24 January 2008
m
no edit summary
You can use regedit to import registry settings. This can be useful to setup defaults for applications, or apply
[http://www.winguides.com/registry/ registry tweaks for various Windows settings].
<pre>
<package
id="sample_registry"
priority="0"
execute="once">
<check type="registry" condition="equals" path="HKEY_LOCAL_MACHINE\SOFTWARE\Test" value="1" /> <install cmd='regedit /s "%SOFTWARE%\test_registry.reg"' />
</package>
</pre>
And the sample file:
<code>test_registry.reg</code>:
Windows <nowiki>Wstaw tu tekst niesformatowany</nowiki><pre>��Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Test]
"Test Setting"=dword:00000001
[-HKEY_LOCAL_MACHINE\SOFTWARE\TEST2]
</pre>
(In Win2k/XP adding "-" in front of a key name causes that key to be deleted from the registry.)
34
edits