[Bug 50344] wine failed to import HKLM from command line

WineHQ Bugzilla wine-bugs at winehq.org
Thu Dec 17 06:04:34 CST 2020


https://bugs.winehq.org/show_bug.cgi?id=50344

--- Comment #8 from Anastasius Focht <focht at gmx.net> ---
Hello Alexey,

--- quote ---
No keys are added. I've check keys presence using "wine regedit".
--- quote ---

You need to get familiar with the concept of registry reflection.

When you start regedit with graphic user interface you have to look under the
reflected key when looking for 32-bit view.
Otherwise you see the 64-bit view (default).

'wine regedit foobar.reg' (= 32-bit regedit) will get the keys imported in the
32-bit view since the parent key is redirected for 32-bit.

Easy to check with 'grep':

--- snip ---
# 32-bit regedit
$ wine regedit 123.reg

$ grep -i -B 2 DISABLEDWM ~/.wine/system.reg 

[Software\\Wow6432Node\\Microsoft\\Windows
NT\\CurrentVersion\\AppCompatFlags\\Layers] 1608205913
#time=1d6d46b036b709a
"C:\\GOG Games\\The Witcher Enhanced Edition\\launcher.exe"="DISABLEDWM
HIGHDPIAWARE RUNASADMIN WIN7RTM"
"C:\\GOG Games\\The Witcher Enhanced Edition\\System\\witcher.exe"="DISABLEDWM
HIGHDPIAWARE RUNASADMIN WIN7RTM"
--- snip ---

The keys are present, under 'Wow6432Node'.

Now with 64-bit view:

--- snip ---
# 64-bit regedit
$ wine64 regedit 123.reg

$ grep -i -B 2 DISABLEDWM ~/.wine/system.reg

[Software\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers]
1608206262
#time=1d6d46bd38c26a2
"C:\\GOG Games\\The Witcher Enhanced Edition\\launcher.exe"="DISABLEDWM
HIGHDPIAWARE RUNASADMIN WIN7RTM"
"C:\\GOG Games\\The Witcher Enhanced Edition\\System\\witcher.exe"="DISABLEDWM
HIGHDPIAWARE RUNASADMIN WIN7RTM"
--- snip ---

--- quote ---
But how [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows
NT\CurrentVersion\AppCompatFlags\Layers] key is relevant to the 64-bit wine?
--- quote ---

As I wrote earlier: Wine doesn't implement app shims hence any sub-keys/values
are meaningless = ignored by Wine.

If the game installer creates sub-keys there then let it be.
But you don't need these keys if you have some hand-crafted .reg file.

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list