Adding Registry Settings

From WPKG | Open Source Software Deployment and Distribution
Revision as of 16:58, 19 December 2006 by 72.38.54.164 (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

You can use regedit to import registry settings. This can be useful to setup defaults for applications, or apply registry tweaks for various Windows settings.

<package
    id="sample_registry"
    name="Shows a registry entry"
    revision="1"
    priority="0"
    execute="once">

 <install cmd='regedit /s "%SOFTWARE%\test_registry.reg"' />

</package>


And the sample file:

test_registry.reg:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Test]
"Test Setting"=dword:00000001


Normally, you would export this from regedit.exe.