https://bugs.winehq.org/show_bug.cgi?id=41559
Bug ID: 41559 Summary: Add ability to change windows version via command line Product: Wine Version: 1.9.21 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: winetest@luukku.com Distribution: ---
This is just enchanment request.
The command line could be like
winecfg windows 7 winecfg 7
or
wine 7 program.exe
Or something similar.
I need to quite often nowadays change windows version because installers dont like xp anymore.
https://bugs.winehq.org/show_bug.cgi?id=41559
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source Component|-unknown |programs
--- Comment #1 from Austin English austinenglish@gmail.com --- FYI, you can use winetricks for that.
https://bugs.winehq.org/show_bug.cgi?id=41559
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com --- Win7 is default now, making this issue even less important.
https://bugs.winehq.org/show_bug.cgi?id=41559
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |ABANDONED Status|UNCONFIRMED |RESOLVED
--- Comment #3 from winetest@luukku.com --- closing
https://bugs.winehq.org/show_bug.cgi?id=41559
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Ever confirmed|0 |1 CC| |austinenglish@gmail.com Resolution|ABANDONED |---
--- Comment #4 from Austin English austinenglish@gmail.com --- It would still be nice, so that winetricks could use it instead of having to duplicate the registry entries, etc.
https://bugs.winehq.org/show_bug.cgi?id=41559
--- Comment #5 from Fabian Maurer dark.shadow4@web.de --- *** Bug 45616 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=41559
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Add ability to change |(winecfg) Add ability to |windows version via command |change windows version via |line |command line
https://bugs.winehq.org/show_bug.cgi?id=41559
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEW
--- Comment #6 from Austin English austinenglish@gmail.com --- Additional request (that could go in a separate bug if this is fixed without it):
A way to query winecfg to print the current windows version would be nice for winetricks (rather than having to parse the registry or using autohotkey).
https://bugs.winehq.org/show_bug.cgi?id=41559
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net
--- Comment #7 from Anastasius Focht focht@gmx.net --- Hello Austin,
--- quote --- A way to query winecfg to print the current windows version would be nice for winetricks (rather than having to parse the registry or using autohotkey). --- quote ---
this would make sense if one decides to add some 'set winver "<caption>"' command to 'winecfg' to make it symmetrical.
If it's only for the query capability I suggest to consider enhancing the Windows builtin methods/tools, avoiding Wine-proprietary interface.
https://www.windows-commandline.com/find-windows-os-version-from-command/
--- snip --- $ wmic os get buildnumber,caption,CSDVersion /format:csv --- snip ---
--- snip --- $ systeminfo | findstr /B /C:"OS Name" /C:"OS Version" --- snip ---
$ wine --version wine-4.12.1
Regards
https://bugs.winehq.org/show_bug.cgi?id=41559
Owen Rudge owen@owenrudge.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |owen@owenrudge.net
--- Comment #8 from Owen Rudge owen@owenrudge.net --- 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.
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).
https://bugs.winehq.org/show_bug.cgi?id=41559
--- Comment #10 from Owen Rudge owen@owenrudge.net --- Ah, my mistake - I’ll submit a patch for that tomorrow.
https://bugs.winehq.org/show_bug.cgi?id=41559
--- Comment #11 from Owen Rudge owen@owenrudge.net --- (In reply to Austin English from comment #9)
There's one small issue, though. It exits with an error, even when it did update the windows version:
A fix has now been committed (7b485dbf68e2ace921a59dcb50ef82d741fb8949). 0 will be returned on success, 1 if the version cannot be found.
https://bugs.winehq.org/show_bug.cgi?id=41559
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |7b485dbf68e2ace921a59dcb50e | |f82d741fb8949 Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #12 from Austin English austinenglish@gmail.com --- (In reply to Owen Rudge from comment #11)
(In reply to Austin English from comment #9)
There's one small issue, though. It exits with an error, even when it did update the windows version:
A fix has now been committed (7b485dbf68e2ace921a59dcb50ef82d741fb8949). 0 will be returned on success, 1 if the version cannot be found.
Yep, works for me, thanks again Owen!
https://bugs.winehq.org/show_bug.cgi?id=41559
--- Comment #13 from Austin English austinenglish@gmail.com --- Relevant winetricks bug for anyone interested: https://github.com/Winetricks/winetricks/issues/1532
https://bugs.winehq.org/show_bug.cgi?id=41559
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #14 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 5.7.
https://bugs.winehq.org/show_bug.cgi?id=41559
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |5.0.x
https://bugs.winehq.org/show_bug.cgi?id=41559
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|5.0.x |---
--- Comment #15 from Michael Stefaniuc mstefani@winehq.org --- Removing the 5.0.x milestone from bug fixes included in 5.0.2.