[python-win32] export registry keys
le dahut
le.dahut at laposte.net
Fri Mar 10 09:29:07 CET 2006
I was thinking about win32api.RegSaveKey or _winreg.SaveKey but on XP it
must be preceded by a privilege modification and they don't save regular
.reg files but internal reg format ...
My app will be py2exeded and used by hundreds of people so I can install
Resource Kits or other stuff, it must be done with python and/or
internal windows commands.
Someone has an idea ? (otherwise I'll use "reg export" under XP and
regedit /E with 98 but it seems very barbarian isn't it ;-) )
K.
Tim Roberts a écrit :
> On Thu, 09 Mar 2006 17:56:08 +0100, le dahut <le.dahut at laposte.net> wrote:
>
>> What is the best way to export/import a part of windows registry into
>> original .reg files (according to the os type). Code must run on both 98
>> and XP ?
>>
>
> If you can find a copy of the Windows 2000 Resource Kit (and it may be
> downloadable from Microsoft), you can use the regdmp and regini tools to
> do that. Regini is built-in to XP, but both tools work on 98 as well
> (95, even). The file format is similar, but not identical, to a stock
> regedit script.
>
More information about the Python-win32
mailing list