http://bugs.winehq.org/show_bug.cgi?id=58209
Bug ID: 58209 Summary: add an environmental variable to control the Windows Version Product: Wine Version: 10.7 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: cemer99797@isorax.com Distribution: ---
the current environmental variables only include: https://gitlab.winehq.org/wine/wine/-/wikis/Wine-User%27s-Guide#environment-...
WINEDEBUG WINEDLLOVERRIDES WINEARCH WINEPREFIX
there shoud also be an environmental variable to set the Windows Version (currently set using `winecfg` and choosing Windows Version at the bottom of the Applications tab)
usage:
WINEWINVER=winxp wine my-old-program.exe
all versions should have a corresponding WINEWINVER variable: WINEWINVER= win11 win10 win8.1 win8 win2008r2 ...etc...
This also helps speed up testing of apps with issues, it's much faster than switching Windows Versions using `winecfg` and relaunching the app
http://bugs.winehq.org/show_bug.cgi?id=58209
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- You'll have to relaunch anyway, but you can use "winecfg /v winxp" from command line already, to avoid going through UI.
Then you can configure different version reported for a given exe file you run, if you need this change set permanently for some application.
http://bugs.winehq.org/show_bug.cgi?id=58209
--- Comment #2 from ToastyBug cemer99797@isorax.com --- (In reply to Nikolay Sivov from comment #1)
You'll have to relaunch anyway, but you can use "winecfg /v winxp" from command line already, to avoid going through UI.
Then you can configure different version reported for a given exe file you run, if you need this change set permanently for some application.
Thank you, I was able to figure out the options
Usage: winecfg [options]
Options: [no option] Launch the graphical version of this program. /v Display the current global Windows version. /v version Set global Windows version to 'version'. /? Display this information and exit.
Valid versions for 'version':
win11 Windows 11 win10 Windows 10 win81 Windows 8.1 win8 Windows 8
win2008r2 Windows 2008 R2 win7 Windows 7 win2008 Windows 2008 vista Windows Vista win2003 Windows 2003 winxp64 Windows XP 64 winxp Windows XP win2k Windows 2000 winme Windows ME win98 Windows 98 win95 Windows 95 nt40 Windows NT 4.0 nt351 Windows NT 3.51 win31 Windows 3.1 win30 Windows 3.0 win20 Windows 2.0
So I could launch an app with: winecfg /v winxp && wine my-old-program.exe
http://bugs.winehq.org/show_bug.cgi?id=58209
ToastyBug cemer99797@isorax.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID
--- Comment #3 from ToastyBug cemer99797@isorax.com --- https://gitlab.winehq.org/wine/wine/-/wikis/Man-Pages/winecfg
http://bugs.winehq.org/show_bug.cgi?id=58209
ToastyBug cemer99797@isorax.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from ToastyBug cemer99797@isorax.com --- works with `winecfg /v`