Regedit script is ignored: changes not appearing in Registry

Questions about Wine on macOS.
Locked
User avatar
sprezzatura
Level 1
Level 1
Posts: 9
Joined: Sat Dec 16, 2017 10:09 am

Regedit script is ignored: changes not appearing in Registry

Post by sprezzatura »

I am attempting to change the Wine font settings with the following regedit script:

Code: Select all

REGEDIT4

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts]
"LogPixels"="dword:00000080"
The script does not appear to have any effect on the Registry, the value of "LogPixels" does not change when viewed in regedit.

This needs to be done with a script because it is part of an installer, and should not require user intervention.

This script works OK on Windows (the Registry is changed).

Why is this failing? How do I make it work?
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: Regedit script is ignored: changes not appearing in Regi

Post by DarkShadow44 »

How is the .reg file applied?
User avatar
sprezzatura
Level 1
Level 1
Posts: 9
Joined: Sat Dec 16, 2017 10:09 am

Re: Regedit script is ignored: changes not appearing in Regi

Post by sprezzatura »

I run regedit from the Wine command line, passing the name of the script file as an argument:

regedit script.reg
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: Regedit script is ignored: changes not appearing in Regi

Post by DarkShadow44 »

You're using latest wine? It works for me, though I'm using linux.
User avatar
sprezzatura
Level 1
Level 1
Posts: 9
Joined: Sat Dec 16, 2017 10:09 am

Re: Regedit script is ignored: changes not appearing in Regi

Post by sprezzatura »

I was using Wine 2. Wine 3 has just become available, I will try it with Wine 3.
Locked