This is exactly the procedure I was asking about. So why did your
plugin goes in circles (via the main HIV of BartPE) instead of going
this itself (only, of course, automated)?
This might add half-a-second to boot time, but would make
customization so much easier...
AHA! This might answer my question... Unfortunately, right now I do
not have a Windows machine at hand to export the .reg file (I would
use US)...
On the other hand, switching users may switch the locale at runtime,
right? So it looks like this setting MUST have immediate effect.
There are three possible scenarios when you make a registry change.
1. Processes that continually monitor for changes in the registry so when
they are made with any tool, including the command line, the changes take
effect immediately.
2. Processes that get their settings from the registry but never read them
again unless they are told to. If you change the settings for one of these
from the command line the settings will not take effect immediately. You
have to make a Windows system call to tell the process to re-read its
settings. Several of the control panel applets have this function built
into them. If the use the control panel applet the change is immediate
however, if you use a command line utility to modify the registry the
changes will not take effect. If you know the system call that needs to be
made it is possible to write a program that will do it for you from the
command line.
3. Processes that get their settings from the registry but never read them
again and there is no way to tell them to. When you change the registry
settings for a process like this you have to reboot the system in order for
them to take effect.
My question was, in fact, more about "tools" than about the actually
used procedure. Are there command-line tools to emit the .reg file
for the given subtree of a running system?
There are several tools that will allow you to dump registry settings to a
file and then import them into the registry.
regdmp.exe
regini.exe
reg.exe
regedit.exe
regedit.exe is the one most people are familiar with.
To export registry settings from
"HKEY_CURRENT_USER\Control Panel\International"
To the file foo.reg in Regedit v5 format use the following syntax:
regedit.exe /e foo.reg "HKEY_CURRENT_USER\Control Panel\International"
to export them in Regedit v4 format use the following syntax:
regedit.exe /a /e foo.reg "HKEY_CURRENT_USER\Control Panel\International"
To import the registry settings use the following syntax:
regedit.exe foo.reg
You will get several GUI prompts so if you want it to do it silently use
the following syntax:
regedit.exe /s foo.reg
I see that you explicitly mention Perl in your plugin. It may be
simpler with Perl, right?
Thanks again,
Ilya
P.S. I have not googled for it yet, but maybe people here know right
away about installing keyboard layouts with BartPE?
To do keyboard layouts you use the same process. You just have to know what
keys in registry control they layout.
Use this Google search
windows registry keyboard layout
keith
--
Keith R. Watson Georgia Institute of Technology
Systems Support Specialist IV College of Computing
(e-mail address removed) 801 Atlantic Drive NW
(404) 385-7401 Atlanta, GA 30332-0280