.reg file import fails silently from command line when trying to write to HKEY_LOCALMACHINE

Questions about Wine on Linux
Locked
bynw
Level 1
Level 1
Posts: 5
Joined: Sun Apr 04, 2021 11:21 pm

.reg file import fails silently from command line when trying to write to HKEY_LOCALMACHINE

Post by bynw »

Hello.
When trying to import a registry file via command line (regedit x.reg) which writes some keys to HKEY_LOCAL_MACHINE, the importing fails silently. The same is successful when I import via GUI.
I do not have this issue with reg files that write to HKEY_CURRENT_USER
I would appreciate help with this.
qwertymnb
Level 5
Level 5
Posts: 273
Joined: Sun Jan 17, 2016 4:36 pm

Re: .reg file import fails silently from command line when trying to write to HKEY_LOCALMACHINE

Post by qwertymnb »

Maybe if you write to HKEY_LOCAL_MACHINE/Software they might be written to subkey Wow6432Node. Could you check if they are written to that place?

Then maybe 'wine64 regedit x.reg' might help (instead of 'wine regedit x.reg')
bynw
Level 1
Level 1
Posts: 5
Joined: Sun Apr 04, 2021 11:21 pm

Re: .reg file import fails silently from command line when trying to write to HKEY_LOCALMACHINE

Post by bynw »

That did it. Thank you do much for the help.
Locked