[Bug 49241] (winecfg) Add ability to set windows version to default via command line

WineHQ Bugzilla wine-bugs at winehq.org
Sun May 31 22:49:54 CDT 2020


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

--- Comment #2 from Austin English <austinenglish at gmail.com> ---
(In reply to Zebediah Figura from comment #1)
> I'd assume you want to save and restore the previous value; what's the
> purpose of this?

Long term planning for winetricks. When winetricks changes the windows version
for whatever reason, generally it's restored to the default value afterward.
Winetricks sets that to the default, which currently in win7.

This presents two problems:
1) As you alluded, the previous value may not be the default. So, if a user
does:
$ winetricks vista
$ wineserver -w
$ winecfg

It shows vista. Good. The user then installs dotnet20:
$ winetricks dotnet20
$ wineserver -w
$ winecfg

winecfg is now set to win7. I'd like to instead be able to store the prefix
default before changing it, and be able to set that instead of whatever
winetricks' hardcoded default is.

2) At some point, win7 won't be default. win10, or some future windows release,
if there every is one, will be. When that happens, winetricks either has to
hardcode the wine version where the change occurred and replicate that logic,
or  not try to match it.

Instead, I'd like to be able to just do 'wine winecfg /v default', and know
that regardless of the wine version, I will get the windows version that should
be default.

Bug 49242 covers the case of getting the information. While I agree with Focht
that having solutions that cover windows as well (i.e., systeminfo/wmic) would
be good, it would be simpler for me to be able to get the info from winecfg
(i.e., something that prints the windows version in same format that /v uses to
set it).

-- 
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