WineHQ
Bug Tracking Database – Bug 35084

 Bugzilla

 

Last modified: 2021-07-19 06:44:38 UTC  

Visual Studio 2010 installer fails to install in 64-bit Windows XP WINEPREFIX (claims "Windows XP x64 Service Pack 2 is required")

Bug 35084 - Visual Studio 2010 installer fails to install in 64-bit Windows XP WINEPREFIX (claims "Windows XP x64 Service Pack 2 is required")
Visual Studio 2010 installer fails to install in 64-bit Windows XP WINEPREFIX...
Status: CLOSED FIXED
AppDB: Show Apps affected by this bug
Product: Wine
Classification: Unclassified
Component: loader
1.7.7
x86-64 Linux
: P2 normal
: ---
Assigned To: Mr. Bugs
https://web.archive.org/web/201303291...
: download, Installer
Depends on:
Blocks: 32281
  Show dependency tree
 
Reported: 2013-12-08 13:22 UTC by Anastasius Focht
Modified: 2021-07-19 06:44 UTC (History)
0 users

See Also:
Regression SHA1:
Fixed by SHA1: 4af2ca4c39f86111494ebcf39e1fd4285cbfd667
Distribution: ---
Staged patchset:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anastasius Focht 2013-12-08 13:22:22 UTC
Hello folks,

as the summary says.

The installer prerequisite log "dd_depcheck_VC_EXP_100.txt" is pretty verbose, no need for Wine trace log:

--- snip ---
...
[12/08/13,20:06:38] Windows XP x64 Service Pack 2 is required == 
[12/08/13,20:06:38] 	This component uses the FileRegVerCheck version check method. It will compare a given version against the version of a regkey on your machine.
[12/08/13,20:06:38] 	Registry key being interrogated: HKLM,System\CurrentControlSet\Control\Windows; Value: CSDVersion; Version: 512.
[12/08/13,20:06:38] 	Version on user's machine:	256
[12/08/13,20:06:38] 	Version to be installed:	512
[12/08/13,20:06:38] Windows XP x64 Service Pack 2 is required == Component to be installed.
--- snip ---

Setting CSDVersion to 512 in 64-bit prefix allows the installer go further.

Wine uses "Service Pack 3" for 32-bit "Windows XP" setting (=latest).
There is no SP3 for the 64-bit version of Windows XP. XP2 is indeed the latest.

For consistency it would make sense that Wine uses SP2 for 64-bit XP, indicating highest SP level.

$ sha1sum vc_web.exe 
c2d61a5424aa474a169e59199aa2158a858833f6  vc_web.exe

$ du -sh vc_web.exe 
3.2M	vc_web.exe

$ wine --version
wine-1.7.8-128-g37460b6

Regards
Comment 2 Anastasius Focht 2013-12-11 15:31:07 UTC
Hello Austin,

once again, please refrain from resolving my bug reports as 'fixed' so quickly after the daily GIT master update - unless you really validated that the bug was fixed.

There is one missing bit: 'loader/wine.inf.in' has to be updated too because it contains the version information used during initial 32-bit and 64-bit WINEPREFIX creation.

Source: http://source.winehq.org/git/wine.git/blob/2292b06281286cacfd9b037b8907ff2f6bf65975:/loader/wine.inf.in#l3031

--- snip ---
3031 [VersionInfo.ntamd64]
3032 HKLM,%CurrentVersionNT%,"CurrentVersion",2,"5.2"
3033 HKLM,%CurrentVersionNT%,"CSDVersion",2,"Service Pack 1"
3034 HKLM,%CurrentVersionNT%,"CurrentBuildNumber",2,"3790"
3035 HKLM,%CurrentVersionNT%,"CurrentType",2,"Uniprocessor Free"
3036 HKLM,%CurrentVersionNT%,"ProductName",2,"Microsoft Windows XP"
3037 HKLM,%Control%\ProductOptions,"ProductType",2,"WinNT"
3038 HKLM,%Control%\Windows,"CSDVersion",0x10003,0x100
3039 HKLM,%Control%\Session Manager\Environment,"OS",2,"Windows_NT"
--- snip ---

Regards
Comment 3 Anastasius Focht 2013-12-12 13:37:20 UTC
Hello folks,

during investigation of other bugs I found that the 32-bit Firefox 2x installer also refuses to run in clean 64-bit prefix, stating the same requirement: "Windows XP SP2 or later needed".

Download: https://download.mozilla.org/?product=firefox-stub&os=win&lang=en-US

$ file Firefox\ Setup\ Stub\ 26.0.exe 
Firefox Setup Stub 26.0.exe: PE32 executable (GUI) Intel 80386, for MS Windows, UPX compressed

$ sha1sum Firefox\ Setup\ Stub\ 26.0.exe 
6a52429dadad5b3d261b2f44676a67f63a4b4cd0  Firefox Setup Stub 26.0.exe

$ du -sh Firefox\ Setup\ Stub\ 26.0.exe 
280K	Firefox Setup Stub 26.0.exe

$ wine --version
wine-1.7.8-200-gd566292

Regards
Comment 4 Anastasius Focht 2013-12-27 13:12:12 UTC
Hello folks,

a user just showed up in #winehq

--- quote ---
<cyos> i got a problem with installing FireFox23.0.exe.... i become a message with "Sorry, Firefox cant be installed. This version of Firfox requires Microsoft Windows XP SP 2 or newer"
<focht> cyos: you're installing in 64-bit prefix right? this is a known bug ... work around by winecfg -> select another windows version, select 'windows xp', "ok" = saves data. you can also work around by using 32-bit prefix, e.g. WINEARCH=win32 ..
<cyos> ah ok it works :) thx
* cyos has quit (Quit: Verlassend)
--- quote ---

I'd like to point out the fix is easy - there is just one missing part (see my comment #2).
Nowadays many people work with 64-bit prefixes, unaware of the implications.

Regards
Comment 5 Anastasius Focht 2013-12-30 14:47:35 UTC
Hello folks,

this is now also fixed for newly created WINEPREFIXes.

Fixed by commit http://source.winehq.org/git/wine.git/commitdiff/4af2ca4c39f86111494ebcf39e1fd4285cbfd667

Thanks Hans (first part) and Austin (second part)

NOTE: already existing 64-bit Windows XP SP1 prefixes must be manually corrected (winecfg -> select different Windows version into view, re-select Windows XP -> ok/save).

Regards
Comment 6 Alexandre Julliard 2014-01-03 13:10:12 UTC
Closing bugs fixed in 1.7.10.


Privacy Policy
If you have a privacy inquiry regarding this site, please write to [email protected]

Hosted By CodeWeavers