https://bugs.winehq.org/show_bug.cgi?id=40723
Bug ID: 40723 Summary: Windows NT\CurrentVersion CurrentVersion entry should change with Windows Version setting Product: Wine Version: 1.9.11 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: trivial Priority: P2 Component: registry Assignee: wine-bugs@winehq.org Reporter: jedwbartlett@gmail.com Distribution: ---
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion "CurrentVersion"
CurrentVersion value, regardless of ProductName is being set to 5.0
It should be set based on the version of windows that is configured in winecfg
Operating system Version number ---------------------------- -------------- Windows 10 10.0 Windows Server 2016 10.0 Windows 8.1 6.3 Windows Server 2012 R2 6.3 Windows 8 6.2 Windows Server 2012 6.2 Windows 7 6.1 Windows Server 2008 R2 6.1 Windows Server 2008 6.0 Windows Vista 6.0 Windows Server 2003 R2 5.2 Windows Server 2003 5.2 Windows XP 64-Bit Edition 5.2 Windows XP 5.1 Windows 2000 5.0
I have some products that explicitly check to ensure they are being installed on a supported version of Windows. (Debatable that this is appropriate, but it is what it is).
(Source of table) http://stackoverflow.com/questions/14648796/currentversion-value-in-registry...
https://bugs.winehq.org/show_bug.cgi?id=40723
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source CC| |austinenglish@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=40723
--- Comment #1 from Bruno Jesus 00cpxxx@gmail.com --- I cannot confirm that. When I change the version in winecfg the registry reflects the change correctly.
https://bugs.winehq.org/show_bug.cgi?id=40723
--- Comment #2 from Bruno Jesus 00cpxxx@gmail.com --- Unless I don't understand the bug correctly, but this is a piece of winecfg source code confirming it changes the version (appdefaults.c):
49 } win_versions[] = 50 { 51 { "win10", "Windows 10", 10, 0, 0x2800,VER_PLATFORM_WIN32_NT, " ", 0, 0, "WinNT"}, 52 { "win81", "Windows 8.1", 6, 3, 0x2580,VER_PLATFORM_WIN32_NT, " ", 0, 0, "WinNT"}, 53 { "win8", "Windows 8", 6, 2, 0x23F0,VER_PLATFORM_WIN32_NT, " ", 0, 0, "WinNT"}, 54 { "win2008r2", "Windows 2008 R2", 6, 1, 0x1DB1,VER_PLATFORM_WIN32_NT, "Service Pack 1", 1, 0, "ServerNT"}, 55 { "win7", "Windows 7", 6, 1, 0x1DB1,VER_PLATFORM_WIN32_NT, "Service Pack 1", 1, 0, "WinNT"}, 56 { "win2008", "Windows 2008", 6, 0, 0x1772,VER_PLATFORM_WIN32_NT, "Service Pack 2", 2, 0, "ServerNT"}, 57 { "vista", "Windows Vista", 6, 0, 0x1772,VER_PLATFORM_WIN32_NT, "Service Pack 2", 2, 0, "WinNT"}, 58 { "win2003", "Windows 2003", 5, 2, 0xECE, VER_PLATFORM_WIN32_NT, "Service Pack 2", 2, 0, "ServerNT"}, 59 #ifdef _WIN64 60 { "winxp64", "Windows XP", 5, 2, 0xECE, VER_PLATFORM_WIN32_NT, "Service Pack 2", 2, 0, "WinNT"}, 61 #else 62 { "winxp", "Windows XP", 5, 1, 0xA28, VER_PLATFORM_WIN32_NT, "Service Pack 3", 3, 0, "WinNT"}, 63 { "win2k", "Windows 2000", 5, 0, 0x893, VER_PLATFORM_WIN32_NT, "Service Pack 4", 4, 0, "WinNT"}, 64 { "winme", "Windows ME", 4, 90, 0xBB8, VER_PLATFORM_WIN32_WINDOWS, " ", 0, 0, ""}, 65 { "win98", "Windows 98", 4, 10, 0x8AE, VER_PLATFORM_WIN32_WINDOWS, " A ", 0, 0, ""}, 66 { "win95", "Windows 95", 4, 0, 0x3B6, VER_PLATFORM_WIN32_WINDOWS, "", 0, 0, ""}, 67 { "nt40", "Windows NT 4.0", 4, 0, 0x565, VER_PLATFORM_WIN32_NT, "Service Pack 6a", 6, 0, "WinNT"}, 68 { "nt351", "Windows NT 3.51", 3, 51, 0x421, VER_PLATFORM_WIN32_NT, "Service Pack 5", 5, 0, "WinNT"}, 69 { "win31", "Windows 3.1", 3, 10, 0, VER_PLATFORM_WIN32s, "Win32s 1.3", 0, 0, ""}, 70 { "win30", "Windows 3.0", 3, 0, 0, VER_PLATFORM_WIN32s, "Win32s 1.3", 0, 0, ""}, 71 { "win20", "Windows 2.0", 2, 0, 0, VER_PLATFORM_WIN32s, "Win32s 1.3", 0, 0, ""} 72 #endif 73 };
446 case VER_PLATFORM_WIN32_NT: 447 snprintf(Buffer, sizeof(Buffer), "%d.%d", win_versions[selection].dwMajorVersion, 448 win_versions[selection].dwMinorVersion); 449 set_reg_key(HKEY_LOCAL_MACHINE, szKeyNT, "CurrentVersion", Buffer);
https://bugs.winehq.org/show_bug.cgi?id=40723
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- The registry is set if you change the version globally, but not if you change it for a specific app. Maybe that's what the OP was seeing? Of course the registry entry is global so setting it per-application is not possible.
https://bugs.winehq.org/show_bug.cgi?id=40723
--- Comment #4 from Jedidiah Bartlett jedwbartlett@gmail.com --- I was able to re-produce this problem again this morning after rebooting my machine.
Steps to reproduce (Running Stock Ubuntu Xenial 16.04:
1. From terminal, run `winecfg` - Edit the "Defualt Settings" to select 'Windows 7' - Click 'Apply' - Click `OK` to close the winecfg editor 2. From terminal, run `wine regedit` - navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion - Observe that ProductName has data value of 'Microsoft Windows 7' - Observe the error - CurrentVersion has data value of '5.0' 3. From terminal, run `winecfg` - Edit the "Defualt Settings" to select 'Windows 8' - Click 'Apply' - Click `OK` to close the winecfg editor 4. From terminal, run `wine regedit` - navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion - Observe that ProductName has data value of 'Microsoft Windows 8' - Observe the error - CurrentVersion has data value of '5.0'
HOWEVER!!
From two separate terminal sessions, I then opened up the `winecfg` and `wine
regidit` sessions to copy-paste some screenshots to add to this bug. When I had them opened together, I performed the following operations: 1. In the Wine configuration dialog - Edit the "Defualt Settings" to select 'Windows 10' - Click 'Apply' 2. In the Registry Editor dialog - Press 'F5' to refresh the registry view - Navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion - Observe that ProductName has data value of 'Microsoft Windows 10' - Observe the error HAS CORRECTED ITSELF??? - CurrentVersion has data value of '10.0'
I have since repeated this with every Windows Version option and it is working fine. I went back to the original steps I outlined above, and was not able to get the bug to show itself. (Opening winecfg first, changing, closing, and then viewing the registry).
I can no longer get the issue to re-produce now either, so something must have been strange with my original installation. I suggest closing this as not reproduce able. Thank you for the quick response and effort!
https://bugs.winehq.org/show_bug.cgi?id=40723
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dimesio@earthlink.net, | |winetest@luukku.com
--- Comment #5 from winetest@luukku.com ---
from comment #4) I can no longer get the issue to re-produce now either, so something must have been strange with my original installation. I suggest closing this as not reproduce able. Thank you for the quick response and effort!