Regedit output to STDOUT / force registry files sync

Bill Medland billmedland at shaw.ca
Tue Mar 20 11:55:29 CDT 2007


On Mon, 2007-19-03 at 12:14 +0100, Vit Hrachovy wrote:
> Hi,
> I'm trying to find some elegant method to access registry keys added 
> during one WINE session, i.e. without restarting WINE.
> 
> Test case description:
> 	1. Open WINE session
> 		wineconsole --backend=user cmd
> 	2. During session, insert some new registry key
> 		regedit new-entry.reg
> 	3. Try to access the new registry entry from bash
> 		cat ~/.wine/system.reg |grep AutoHotkey
> 		(fails)
> 	4. Close WINE session
> 
> I've found there was at times an option to save registry periodically, 
> but this can't help me here.
> 
> This problem can be solved in two ways, both of them can be helpful:
> 
> a) Create small program to force sync of registry in memory with 
> registry files - 'wineflushregistry'.
> 
> b) Enhance regedit to be able to output to STDOUT. By default registry 
> search output is done to a specified file. It can be redirected to 
> STDERR, though. (tested on 0.9.29, 0.9.33)
> 

c) Use the shell
wine regedit -e /tmp/$$.reg <branch> && cat /tmp/$$.reg && rm -f /tmp/$
$.reg


> Regards
> Vit Hrachovy
> 
> 
> 
-- 
Bill Medland <billmedland at shaw.ca>




More information about the wine-devel mailing list