Open forum for end-user questions about
Wine. Before asking questions, check out the
Wiki as a first step.
Forum Rules
-
willb
- Level 2

- Posts: 19
- Joined: Sat Jul 11, 2009 1:29 pm
Post
by willb » Fri Jan 15, 2021 6:25 pm
I've been setting MS Windows version using regedit from command line. Now I want to try wine 6.0 winecfg command-line,
Code: Select all
WINEDEBUG=+winecfg winecfg -v winxp
but all I get is
Code: Select all
0024:trace:winecfg:WinMain restarting L"C:\\windows\\system32\\winecfg.exe"
010c:trace:winecfg:set_winver_from_string desired winver: 'winxp'
I checked the source code programs/winecfg/appdefaults.c in function set_winver_from_string() and it looks like it should have said "match with winxp', but I don't see that trace message, and I don't see the version set from winecfg GUI.
What am I doing wrong?
I use wine-staging 6.0 from Fedora 33, and LANG is en_US.utf8. I tried LANG=C and that didn't work either. I don't know how else to debug this.
-
jkfloris
- Level 9

- Posts: 1376
- Joined: Thu Aug 14, 2014 10:10 am
Post
by jkfloris » Sat Jan 16, 2021 2:18 am
Use
winxp64 In a 64-bit prefix.
-
jkfloris
- Level 9

- Posts: 1376
- Joined: Thu Aug 14, 2014 10:10 am
Post
by jkfloris » Sat Jan 16, 2021 8:29 am
After some more research it appears that winecfg doesn't fully work on a 64-bit prefix. (Debian Sid, Wine 6.0)
In a 32-bit prefix the /v, /v version and /? options work as expected.
In a 64-bit prefix I can set a version with /v version, but the /v and /? options don't give any output.
Can someone confirm?
-
jkfloris
- Level 9

- Posts: 1376
- Joined: Thu Aug 14, 2014 10:10 am
Post
by jkfloris » Sat Jan 16, 2021 9:03 am
Weird. If I pipe the output to a file or a program the output is shown.
Code: Select all
floris@Jessica:~$ WINEPREFIX=/home/floris/wine-prefix/winecfg64/ WINEDLLOVERRIDES=winemenubuilder.exe=d /opt/wine-stable/bin/wine winecfg /?
0034:err:module:process_init L"C:\\windows\\system32\\winemenubuilder.exe" not found
002c:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (126).
floris@Jessica:~$ WINEPREFIX=/home/floris/wine-prefix/winecfg64/ WINEDLLOVERRIDES=winemenubuilder.exe=d /opt/wine-stable/bin/wine winecfg /? | cat
0034:err:module:process_init L"C:\\windows\\system32\\winemenubuilder.exe" not found
002c:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (126).
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':
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