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)
Thank you, I was able to figure out the options
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`