brezerk / q4wine

Q4Wine is a Qt GUI for W.I.N.E. It will help you manage wine prefixes and installed applications.
http://q4wine.brezblock.org.ua/
GNU General Public License v3.0
207 stars 40 forks source link

Add selection for newer windows versions #141

Open v1993 opened 5 years ago

v1993 commented 5 years ago

There are Windows™ versions which I can set using winecfg, but not via q4wine virtual disk configuration:

brezerk commented 5 years ago

Thank you for the report. I'll take a look.

brezerk commented 5 years ago

sigh

unfortunately, the issue is more complex than I expected.

wine project drifted away from simple [HKCU\Software\Wine" /v Version] registry key to more complex approach: https://github.com/wine-mirror/wine/blob/6d801377055911d914226a3c6af8d8637a63fa13/dlls/ntdll/version.c

winetricks project absorbed current implementation: https://github.com/Winetricks/winetricks/blob/master/src/winetricks however there is note:

# FIXME: This should really be done with winecfg, but it has no CLI options.
# Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45616

I can absorb this logic as well, but it is pretty hard to detect currently set version.