One of my apps requires a clean .wine directory after each (wine) version upgrade and I'm starting to get fed up of making all of the set-up required - specifically:
- creating a DVD drive in winecfg
- making small changes to a number of registry values (simple but tedious)
Both seem ideal things to be solved by a small script, but I have no idea where to start. Can anyone point me in the right direction?
Stuart
Automate wine configuration (drives and registry)
Automate wine configuration (drives and registry)
On Sat, 2009-07-25 at 01:38 -0500, phual wrote:
getting one of the Nutshell books (Unix in a nutshell / Linux in a
nutshell).
scriptable text editor (sed) or a general purpose text manipulator
(gawk) can do it. Probably the best way of seeing exactly what to do is
to use diff to compare a fresh set of registries with ones you've
modified and then use it to check that your script is actually doing
what is needed.
There's an O'Reilly book, "sed & awk", that may be useful.
could do it entirely in Perl...
Martin
Should be straight forward once you understand shell scripting. ConsiderOne of my apps requires a clean .wine directory after each (wine) version upgrade and I'm starting to get fed up of making all of the set-up required - specifically:
- creating a DVD drive in winecfg
getting one of the Nutshell books (Unix in a nutshell / Linux in a
nutshell).
Probably a job for sed or gawk - the registries are text files, so a- making small changes to a number of registry values (simple but tedious)
scriptable text editor (sed) or a general purpose text manipulator
(gawk) can do it. Probably the best way of seeing exactly what to do is
to use diff to compare a fresh set of registries with ones you've
modified and then use it to check that your script is actually doing
what is needed.
There's an O'Reilly book, "sed & awk", that may be useful.
Of course, rather than using bash plus sed or awk to do the job, youBoth seem ideal things to be solved by a small script, but I have no idea where to start. Can anyone point me in the right direction?
could do it entirely in Perl...
Martin
Re: Automate wine configuration (drives and registry)
Wine should detect all attached drives automatically. If you adding a loop device (mounted ISO image) just make a simlink to it under $WINEPREFIX/dosdevices ex:phual wrote:- creating a DVD drive in winecfg
Code: Select all
ln -s /media/my_iso $WINEPREFIX/dosdevices/d:
Do NOT even think about it!!! DO NOT EVER touch Wine's registry with text editor, unless you fine with totally corrupting it and/or loosing all your changes.Martin Gregorie wrote:Probably a job for sed or gawk - the registries are text files, so a scriptable text editor (sed) or a general purpose text manipulator (gawk) can do it.
If you need to add / modify registry, use ... registry files. This part works the same as windows. Make a .reg file, then import it with 'regedit file.reg'.
Automate wine configuration (drives and registry)
Uhm, why? Should be fine as long as Wine isn't running. This includesDo NOT even think about it!!! DO NOT EVER touch Wine's registry with text
editor, unless you fine with totally corrupting it and/or loosing all your
changes.
wineserver of course.
Automate wine configuration (drives and registry)
On Sat, Jul 25, 2009 at 6:34 PM, Lisa Denia<[email protected]> wrote:
Sure, it may 'usually' work, but be safe and use regedit foo.reg.
--
-Austin
The .reg files aren't plain text, and have to updated a certain way.Uhm, why? Should be fine as long as Wine isn't running. This includesDo NOT even think about it!!! DO NOT EVER touch Wine's registry with text
editor, unless you fine with totally corrupting it and/or loosing all your
changes.
wineserver of course.
Sure, it may 'usually' work, but be safe and use regedit foo.reg.
--
-Austin