WineHQ
Bug Tracking Database – Bug 22896

 Bugzilla

 

Last modified: 2015-01-16 21:46:38 UTC  

Multiple applications and games need support for shell32 FOLDERID_LocalAppDataLow (.NET based Unity Engine games, Java JRE 6 in Vista mode)

Bug 22896 - Multiple applications and games need support for shell32 FOLDERID_LocalAppDataLow (.NET based Unity Engine games, Java JRE 6 in Vista mode)
Multiple applications and games need support for shell32 FOLDERID_LocalAppDat...
Status: CLOSED FIXED
AppDB: Show Apps affected by this bug
Product: Wine
Classification: Unclassified
Component: shell32
1.2-rc1
x86 Linux
: P2 normal
: ---
Assigned To: Mr. Bugs
http://www.oldversion.com/windows/jav...
: download, Installer, patch
: 26921 27452 32429 34219 34858 35218 (view as bug list)
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2010-05-27 06:17 UTC by CortelliStefano
Modified: 2015-01-16 21:46 UTC (History)
15 users (show)

See Also:
Regression SHA1:
Fixed by SHA1: e38d1c9aa1ff39d5fae25ec64d895396afd31835
Distribution: ---
Staged patchset:


Attachments
SHGetFolderPathEx hack for Java JRE 6 installer (1.16 KB, text/plain)
2010-05-27 14:19 UTC, Andrew Nguyen
Details
shell32: Support FOLDERID_LocalAppDataLow. (1.28 KB, patch)
2010-09-15 07:34 UTC, Hans Leidekker
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description CortelliStefano 2010-05-27 06:17:20 UTC
Hallo, I tried install JAVA JRE current version (6u20) under Ubuntu 9.10 and  Wine 1.2 with configuration = Windows Vista, but I receive this message:

Installer: Wrapper.CreateFile failed with error 3: Path not found

Java JRE can be downloaded here:
http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jre-6u20-windows-i586.exe?BundledLineItemUUID=L7uJ_hCuw7sAAAEoMVprt9hb&OrderID=a3KJ_hCuKtUAAAEoG1prt9hb&ProductID=MUNIBe.pkFEAAAEns3oZAPYl&FileName=/jre-6u20-windows-i586.exe

If I set winecfg = Windows XP all works.

Regards,

Stefano
Comment 1 Andrew Nguyen 2010-05-27 07:35:44 UTC
From relay log:

0009:Call KERNEL32.GetProcAddress(68580000,00411f80 "SHGetFolderPathEx") ret=00404ba2
0009:Ret  KERNEL32.GetProcAddress() retval=00000000 ret=00404ba2
...
0009:Call KERNEL32.CreateFileA(0032f6b0 "\\Sun\\Java\\jre1.6.0_20\\Data1.cab",40000000,00000000,00000000,00000002,00000080,00000000) ret=004070f8
0009:Ret  KERNEL32.CreateFileA() retval=ffffffff ret=004070f8
0009:Call KERNEL32.GetLastError() ret=00407020
0009:Ret  KERNEL32.GetLastError() retval=00000003 ret=00407020

It looks like the installer tries to find SHGetFolderPathEx, which appears to be exported on Vista. Since the function doesn't exist on Wine, the installer fails to prepend a path to the directory string fragment, causing failure.
Comment 2 Andrew Nguyen 2010-05-27 14:19:45 UTC
Created attachment 28322 [details]
SHGetFolderPathEx hack for Java JRE 6 installer

Some searching indicates that SHGetFolderPathEx was an early variant of what is now SHGetKnownFolderPath, and it is practically now undocumented by Microsoft as it has withdrawn any documentation that had existed for it long ago. The function, prototype wise, seems to be the same as SHGetKnownFolderPath except for the output parameters being a WCHAR buffer pointer and maximum length in DWORDs. Wine does not have any of the known folders functionality implemented, so the best I could do was a really bad hack that does manage to please the installer.
Comment 3 Dan Kegel 2010-08-14 00:41:22 UTC
AaaaaAAaaaAAAaaAAAAaAAAAA!!!: A Reckless Disregard for Gravity
( http://www.wildgames.com/download/aaaaa-a-reckless-disregard-for-gravity )
seems to suffer from this; it crashes with "unimplemented function".
Comment 4 Jerome Leclanche 2010-09-14 23:44:48 UTC
Commits 678c6776901425654c05988202ed53f7e9a68334 and 859a1d0d44e33b9705dc8578d78b13b270d70708 implement SHGetKnownFolderPath and SHGetFolderPathEx. Please retest.
Comment 5 Hans Leidekker 2010-09-15 07:34:35 UTC
Created attachment 30762 [details]
shell32: Support FOLDERID_LocalAppDataLow.

The commits are not sufficient for the java runtime installer which
wants FOLDERID_LocalAppDataLow, a folder introduced with vista.

Attached patch adds support for this folder but the next problem is
that the installer assumes that the folder exists. This folder doesn't
appear to have an official CSIDL (in which case a solution would
be to add it to wine.inf), so I'm not sure when or how this folder
should be created in Wine.
Comment 6 Frédéric Delanoy 2013-07-06 07:10:20 UTC
Still in wine-1.6-rc4-52-g9a0b434
Comment 7 Frédéric Delanoy 2013-07-07 17:05:17 UTC
*** Bug 27452 has been marked as a duplicate of this bug. ***
Comment 8 Anastasius Focht 2013-12-24 09:19:50 UTC
*** Bug 35218 has been marked as a duplicate of this bug. ***
Comment 9 Anastasius Focht 2013-12-24 09:25:54 UTC
Hello folks,

refining summary as this problems affects various apps/games (search for 'AppData\LocalLow appdb').

If you find appdb entries stating 'Just create folder drive_c/users/AppData/LocalLow/xxx' add the bug for reference.

Obviously still present.

$ wine --version
wine-1.7.9-158-g33fa552

Regards
Comment 10 Anastasius Focht 2014-06-08 21:07:21 UTC
Hello folks,

obviously still present.

Also reported for 'The Forest' (Steam): http://steamcommunity.com/app/242760/discussions/1/522729358874047045

Regards
Comment 11 Anastasius Focht 2014-07-05 20:49:37 UTC
*** Bug 34219 has been marked as a duplicate of this bug. ***
Comment 12 RevenantX 2014-07-21 14:59:19 UTC
Mark as duplicate http://bugs.winehq.org/show_bug.cgi?id=34858
Comment 13 Anastasius Focht 2014-07-21 18:16:32 UTC
*** Bug 34858 has been marked as a duplicate of this bug. ***
Comment 14 Anastasius Focht 2014-07-21 18:17:38 UTC
*** Bug 26921 has been marked as a duplicate of this bug. ***
Comment 15 Sebastian Lackner 2014-08-04 20:36:10 UTC
Should be fixed with:

http://source.winehq.org/git/wine.git/patch/e38d1c9aa1ff39d5fae25ec64d895396afd31835
Comment 16 Jerome Leclanche 2014-08-04 21:04:22 UTC
Should be fixed.
Comment 17 Yanis Lukes 2014-08-05 19:08:09 UTC
Confirming fix for Unity 3D(Unity Editor).

$ ./wine --version
wine-1.7.23-59-ge38d1c9
(plain master branch, no modifications)
Comment 18 Alexandre Julliard 2014-08-08 20:29:13 UTC
Closing bugs fixed in 1.7.24.
Comment 19 Austin English 2015-01-16 21:46:38 UTC
*** Bug 32429 has been marked as a duplicate of this bug. ***


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

Hosted By CodeWeavers