https://bugs.winehq.org/show_bug.cgi?id=41559
--- Comment #9 from Austin English austinenglish@gmail.com --- (In reply to Owen Rudge from comment #8)
I've submitted two patches which should fix this bug:
https://www.winehq.org/pipermail/wine-devel/2020-April/164556.html https://www.winehq.org/pipermail/wine-devel/2020-April/164557.html
Adding in the ability to return the current version has not been implemented however, but should perhaps be opened as a separate request.
Thanks Owen! This will be really helpful for winetricks in the long run.
There's one small issue, though. It exits with an error, even when it did update the windows version:
austin@laptop $ wine winecfg /v win81 ; echo $? 1
(winecfg itself reports Windows 8.1, after, as expected). It should only error out if the registry update failed, or if trying to use an invalid version (winxx, or using anything before xp on a 64-bit prefix).