Ubuntu – Running .reg files with wine

windowswine

I am having trouble running .reg files with wine. I have tried a few solutions that other people have used but when I launch it return the following error:

There is no windows program configured to open this type of file.

I have tried the following:

  • wine regedit regkey.reg
  • Importy registry file in regedit
  • wine start regkey.reg

The .reg file I am using works fine in my actual Windows system.

Best Answer

I managed to reimport exports done with wine's $> regedit:

wine start regedit.exe /home/myname/path/foo.reg 

Note: foo.reg coming from wine's regedit looks a little different than usual_:

REGEDIT4

[HKEY_CURRENT_USER\Software\SomeApplication\Layout]
"WindowState"="1"
"FormWidth"="800"
"FormHeight"="600"
"FormTop"="50"
"FormLeft"="50"

In constrast the (non-working) native form:

Windows Registry Editor Version 5.00

[HKEY_USERS\S-1-5-21-123456789-1000\Software\SomeApplication\Layout]
"WindowState"="1"

The first version works reliably. But I am not sure, how to transform the latter to the former... (replacing line 1 is trivial, but according to what rules getting to those „simplified“ keys...)

Related Question