How do I hide wine version from applications in wine-stable?

Questions about Wine on Linux
Locked
SuperVictor64
Level 2
Level 2
Posts: 23
Joined: Sat Jan 08, 2022 3:07 pm

How do I hide wine version from applications in wine-stable?

Post by SuperVictor64 »

I was wondering if I could hide wine version from applications in wine-stable like wine-staging has.

Is there some user.reg or system.reg file code, winetricks command, registry key or something for that?
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: How do I hide wine version from applications in wine-stable?

Post by jkfloris »

No, you can't. Wine-staging has added a patch to Wine that makes this possible.
A possibility is to compile Wine with the patch.
qwertymnb
Level 5
Level 5
Posts: 273
Joined: Sun Jan 17, 2016 4:36 pm

Re: How do I hide wine version from applications in wine-stable?

Post by qwertymnb »

Another possibility I sometimes use is do a dirty trick:

1. make a backup of the binary you like to run, so you always have a copy.
2. double-check if it is wine-aware:

grep wine_ program.exe (fill in correct name for the program)
grep: program.exe: binary file matches

3. replace the string in the binary:
sed -i 's/wine_/hack_/g' program.exe

to fine tune you could as search string also use wine_get_version (or wine_get_unix_file_name or whatever the program is checking for)
Locked