In some special cases, I have to add a registry key to wine. Is it possible to do so using the command line, and how?
Here are the steps I do from GUI:
wine regedit- On the left, open
HKEY_CURRENT_USER, then open Software - Right click on Wine -> New -> Key (named
Direct3D) - Right click on Direct3D -> New -> String Value (named
VideoMemorySize, double click on it and set it 1024
1 Answer
This is a standard winetricks configuration item:
So, you can do:
$ winetricks videomemorysize=1024
------------------------------------------------------
You are using a 64-bit WINEPREFIX. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Executing w_do_call videomemorysize=1024
Executing load_videomemorysize 1024
Setting video memory size to 1024
Executing winetricks_early_wine regedit C:\windows\Temp\_videomemorysize=1024\set-video.reg 3