http://bugs.winehq.org/show_bug.cgi?id=30845
Bug #: 30845 Summary: Windows 7 SDK installer fails before putting up GUI Product: Wine Version: 1.5.5 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com Classification: Unclassified
With current git, the Windows 7 SDK installer fails before putting up a GUI when run like this: wget http://winetricks.googlecode.com/svn/trunk/src/winetricks rm -rf ~/.wine sh winetricks --no-isolate -q psdkwin7
Reverting the wine-mono install patches, 7b54917f28edf84c4d9db2e1a52e4dac67dd7e31 and 1e721a487775a2f306512a7c719b5fa3301f433d, lets the platform SDK install properly.
http://bugs.winehq.org/show_bug.cgi?id=30845
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |dotnet, Installer, | |regression Regression SHA1| |1e721a487775a2f306512a7c719 | |b5fa3301f433d
--- Comment #1 from Dan Kegel dank@kegel.com 2012-06-04 16:07:29 CDT --- This is a dogfood bug, since I ran into it when I was setting up the platform sdk to do some other work.
http://bugs.winehq.org/show_bug.cgi?id=30845
--- Comment #2 from Dan Kegel dank@kegel.com 2012-06-04 16:17:36 CDT --- (It's possible this is a winetricks bug, but as far as I know winetricks is doing the right thing already.)
http://bugs.winehq.org/show_bug.cgi?id=30845
--- Comment #3 from Hans Leidekker hans@meelstraat.net 2012-06-05 02:51:30 CDT --- It's actually the .NET 2.0 installer that fails. It expects HKLM\Software\Microsoft\.NETFramework to exist:
0046:Call advapi32.RegOpenKeyExW(80000002,79004010 L"Software\Microsoft\.NETFramework",00000000,00020019,007cdd00) ret=79003ece 0046:Ret advapi32.RegOpenKeyExW() retval=00000002 ret=79003ece 0046:trace:seh:raise_exception code=c0000005 flags=0 addr=0x79004c44 ip=79004c44 tid=0046 0046:trace:seh:raise_exception info[0]=00000000 0046:trace:seh:raise_exception info[1]=00000000 0046:trace:seh:raise_exception eax=00000000 ebx=7dc83c16 ecx=00000002 edx=c0000034 esi=00000104 edi=007ce39c 0046:trace:seh:raise_exception ebp=007cdfb0 esp=007cdf24 cs=0023 ds=002b es=002b fs=0063 gs=006b flags=00010246
http://bugs.winehq.org/show_bug.cgi?id=30845
Morg morgawr@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |morgawr@gmail.com
--- Comment #4 from Morg morgawr@gmail.com 2012-06-08 06:02:56 CDT --- Reporting more info, this is at the latest git version (wine --version: wine-1.5.5-262-g31907e0).
When I try to install dotnet20 using winetricks it doesn't work, here's the output:
morgawr@regret:~/work/wine-git/builds/32bit$ WINE=~/work/wine-git/builds/32bit/wine winetricks dotnet20 ------------------------------------------------------ /home/morgawr/work/wine-git/builds/32bit/wine cmd.exe /c echo '%ProgramFiles%' returned unexpanded string '%SystemDrive%\Program Files' ... can be caused a corrupt wineprefix, an old wine, or by not owning /home/morgawr/.wine ------------------------------------------------------
morgawr@regret:~/work/wine-git/builds/32bit$ WINE=~/work/wine-git/builds/32bit/wine winetricks dotnet20 Executing w_do_call dotnet20 Executing load_dotnet20 Executing w_do_call fontfix Executing load_fontfix Setting Windows version to win2k Executing winetricks_early_wine regedit C:\windows\Temp_dotnet20\set-winver.reg Executing mkdir -p /home/morgawr/.cache/winetricks/dotnet20 Executing unzip -o -q -d /home/morgawr/.wine/dosdevices/c:/windows/system32 l_intl.zip fixme:storage:create_storagefile Storage share mode not implemented. Executing mkdir -p /home/morgawr/.cache/winetricks/dotnet20 Executing /home/morgawr/work/wine-git/builds/32bit/wine dotnetfx.exe fixme:advapi:DecryptFileA "C:\users\morgawr\Temp\IXP000.TMP\" 00000000 fixme:advapi:LsaOpenPolicy ((null),0x33f31c,0x00000001,0x33f334) stub fixme:advapi:LsaClose (0xcafe) stub fixme:storage:create_storagefile Storage share mode not implemented. err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x451d7c ------------------------------------------------------ Note: command '/home/morgawr/work/wine-git/builds/32bit/wine dotnetfx.exe' returned status 5. Aborting. ------------------------------------------------------
then I try to install dotnet11 first and then dotnet20 and it seem to work, but during installation it crashes with this output: http://www.morgawr.eu/p/1339153164.png
and then wine crashes Trying to do some more regression testing with this
http://bugs.winehq.org/show_bug.cgi?id=30845
Sylvain Petreolle spetreolle@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |spetreolle@yahoo.fr
--- Comment #5 from Sylvain Petreolle spetreolle@yahoo.fr 2012-06-10 10:43:06 CDT --- (In reply to comment #3)
It's actually the .NET 2.0 installer that fails. It expects HKLM\Software\Microsoft\.NETFramework to exist:
The microsoft mscoree.dll looks for the InstallRoot key. The installation continues if it is set to the correct value (C:\Windows\Microsoft.NET\Framework)
http://bugs.winehq.org/show_bug.cgi?id=30845
--- Comment #6 from Dan Kegel dank@kegel.com 2012-06-10 12:18:32 CDT --- If I create that key, the dotnet20 installer puts up a scary dialog box "A fatal error occurred. However, mscorees.dll could not be loaded to display the appropriate error message.\n\nPlease reinstall the .NET Framework." but installation then continues, and the psdk install starts ok.
http://bugs.winehq.org/show_bug.cgi?id=30845
--- Comment #7 from Hans Leidekker hans@meelstraat.net 2012-06-10 14:26:17 CDT --- (In reply to comment #6)
If I create that key, the dotnet20 installer puts up a scary dialog box "A fatal error occurred. However, mscorees.dll could not be loaded to display the appropriate error message.\n\nPlease reinstall the .NET Framework." but installation then continues, and the psdk install starts ok.
It's surprising that it needs that key because I believe it should install on Windows even if no older runtime is present. What happens if you override mscoree and fusion to native only?
http://bugs.winehq.org/show_bug.cgi?id=30845
--- Comment #8 from Dan Kegel dank@kegel.com 2012-06-10 14:33:14 CDT --- Bad things, with or without that key.
With the key:
err:msi:msi_load_all_components can't initialize assembly caches fixme:msi:MsiGetLastErrorRecord err:msi:ITERATE_Actions Execution halted, action L"SxsInstallCA" returned 1603
Without the key:
err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x451d7c
http://bugs.winehq.org/show_bug.cgi?id=30845
--- Comment #9 from Hans Leidekker hans@meelstraat.net 2012-06-10 15:56:08 CDT --- Created attachment 40476 --> http://bugs.winehq.org/attachment.cgi?id=40476 patch
err:msi:msi_load_all_components can't initialize assembly caches fixme:msi:MsiGetLastErrorRecord err:msi:ITERATE_Actions Execution halted, action L"SxsInstallCA" returned 1603
This is a bug in msi which should be fixed by this patch. It leaves the question about the registry key unanswered though.
http://bugs.winehq.org/show_bug.cgi?id=30845
Hans Leidekker hans@meelstraat.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #40476|0 |1 is obsolete| |
--- Comment #10 from Hans Leidekker hans@meelstraat.net 2012-06-11 08:57:44 CDT --- Created attachment 40487 --> http://bugs.winehq.org/attachment.cgi?id=40487 patch
Here's an improved patch that makes the following recipe work:
1. create fresh prefix 2. wine uninstaller --remove '{E45D8920-A758-4088-B6C6-31DBB276992E}' 3. set windows version to win2k 4. WINEDLLOVERRIDES=mscoree,fusion=n wine dotnetfx.exe
http://bugs.winehq.org/show_bug.cgi?id=30845
Vinycius Maia viny_viny304@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |viny_viny304@hotmail.com
--- Comment #11 from Vinycius Maia viny_viny304@hotmail.com 2012-06-13 16:18:17 CDT --- I have the same problem
fixme:advapi:LsaOpenPolicy ((null),0x33f310,0x00000001,0x33f2fc) stub fixme:advapi:LsaClose (0xcafe) stub fixme:storage:create_storagefile Storage share mode not implemented. err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x451d7c
the installation worked perfectly for me and setting the fusion and mscoree as builtin
http://bugs.winehq.org/show_bug.cgi?id=30845
Felix Yan felixonmars@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |felixonmars@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=30845
Sylvain Petreolle spetreolle@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hans@meelstraat.net
--- Comment #12 from Sylvain Petreolle spetreolle@yahoo.fr 2012-06-28 08:05:57 CDT --- (In reply to comment #10)
Created attachment 40487 [details] patch
Here's an improved patch that makes the following recipe work:
- create fresh prefix
- wine uninstaller --remove '{E45D8920-A758-4088-B6C6-31DBB276992E}'
- set windows version to win2k
- WINEDLLOVERRIDES=mscoree,fusion=n wine dotnetfx.exe
What is the status of this patch ?
http://bugs.winehq.org/show_bug.cgi?id=30845
--- Comment #13 from Hans Leidekker hans@meelstraat.net 2012-06-28 08:23:23 CDT --- (In reply to comment #12)
(In reply to comment #10)
Created attachment 40487 [details] patch
Here's an improved patch that makes the following recipe work:
- create fresh prefix
- wine uninstaller --remove '{E45D8920-A758-4088-B6C6-31DBB276992E}'
- set windows version to win2k
- WINEDLLOVERRIDES=mscoree,fusion=n wine dotnetfx.exe
What is the status of this patch ?
It was committed (after being split up). I believe this bug is fixed, given an updated recipe to install .NET 2.0.
http://bugs.winehq.org/show_bug.cgi?id=30845
--- Comment #14 from Felix Yan felixonmars@gmail.com 2012-06-28 08:27:20 CDT --- (In reply to comment #13)
(In reply to comment #12)
(In reply to comment #10)
Created attachment 40487 [details] patch
Here's an improved patch that makes the following recipe work:
- create fresh prefix
- wine uninstaller --remove '{E45D8920-A758-4088-B6C6-31DBB276992E}'
- set windows version to win2k
- WINEDLLOVERRIDES=mscoree,fusion=n wine dotnetfx.exe
What is the status of this patch ?
It was committed (after being split up). I believe this bug is fixed, given an updated recipe to install .NET 2.0.
Hi, I'd like to know how to install .NET 2.0 correctly now? I tried the recipe above and it failed, which is the same result as what winetricks does.
http://bugs.winehq.org/show_bug.cgi?id=30845
--- Comment #15 from Dan Kegel dank@kegel.com 2012-06-28 08:34:37 CDT --- Have you tried winetricks from svn, http://winetricks.googlecode.com/svn/trunk/src/winetricks ?
http://bugs.winehq.org/show_bug.cgi?id=30845
--- Comment #16 from Felix Yan felixonmars@gmail.com 2012-06-28 08:43:52 CDT --- (In reply to comment #15)
Have you tried winetricks from svn, http://winetricks.googlecode.com/svn/trunk/src/winetricks ?
Hi, I try it every day with latest wine and winetricks, but am still not able to get dotnet20 wizard finished correctly, and all applications using dotnet20 are force closing. See the following bug report: http://code.google.com/p/winetricks/issues/detail?id=220
http://bugs.winehq.org/show_bug.cgi?id=30845
--- Comment #17 from Hans Leidekker hans@meelstraat.net 2012-06-28 10:05:31 CDT --- (In reply to comment #16)
(In reply to comment #15)
Have you tried winetricks from svn, http://winetricks.googlecode.com/svn/trunk/src/winetricks ?
Is this a link to the latest version? I don't see anything there that resembles the steps in comment #10.
Hi, I try it every day with latest wine and winetricks, but am still not able to get dotnet20 wizard finished correctly, and all applications using dotnet20 are force closing.
Have you tried the steps in comment #10?
http://bugs.winehq.org/show_bug.cgi?id=30845
--- Comment #18 from Dan Kegel dank@kegel.com 2012-06-28 10:15:07 CDT --- Yes, it implements the steps in comment #10. It's a bit hard to read, but:
load_dotnet20() { w_call remove_mono ... # Recipe from http://bugs.winehq.org/show_bug.cgi?id=10467#c57 # and http://bugs.winehq.org/show_bug.cgi?id=30845#c10 w_set_winver win2k ... if w_workaround_wine_bug 30845 "Using native fusion while installing..." ,1.5.6 then w_try env WINEDLLOVERRIDES=mscoree,fusion=n $WINE dotnetfx.exe ${W_OPT_UNATTENDED:+/q /c:"install.exe /q"} else w_try $WINE dotnetfx.exe ${W_OPT_UNATTENDED:+/q /c:"install.exe /q"} fi ...
See?
http://bugs.winehq.org/show_bug.cgi?id=30845
--- Comment #19 from Felix Yan felixonmars@gmail.com 2012-06-28 10:18:23 CDT --- (In reply to comment #17)
Have you tried the steps in comment #10?
Yes, turn out to same result as using winetricks.
http://bugs.winehq.org/show_bug.cgi?id=30845
--- Comment #20 from Hans Leidekker hans@meelstraat.net 2012-06-28 10:28:21 CDT --- (In reply to comment #18)
Yes, it implements the steps in comment #10. It's a bit hard to read, but:
load_dotnet20() { w_call remove_mono ... # Recipe from http://bugs.winehq.org/show_bug.cgi?id=10467#c57 # and http://bugs.winehq.org/show_bug.cgi?id=30845#c10 w_set_winver win2k ... if w_workaround_wine_bug 30845 "Using native fusion while installing..." ,1.5.6 then w_try env WINEDLLOVERRIDES=mscoree,fusion=n $WINE dotnetfx.exe ${W_OPT_UNATTENDED:+/q /c:"install.exe /q"} else w_try $WINE dotnetfx.exe ${W_OPT_UNATTENDED:+/q /c:"install.exe /q"} fi ...
It also adds a key on 1.5.7 that shouldn't be there:
# A bug that popped up in 1.5.3 was fixed in 1.5.7; until then a # crappy workaround helps if w_workaround_wine_bug 30845 "Adding .NETFramework registry key. Ignore
fatal error dialog if it pops up." ,1.5.3 1.5.7,
then $WINE reg add 'HKLM\Software\Microsoft.NETFramework' /v InstallRoot /d 'C:\Windows\Microsoft.NET\Framework' /f fi
http://bugs.winehq.org/show_bug.cgi?id=30845
--- Comment #21 from Dan Kegel dank@kegel.com 2012-06-28 10:43:33 CDT --- I don't think that's the case; the line if w_workaround_wine_bug 30845 "Adding .NETFramework registry key. Ignore fatal error dialog if it pops up." ,1.5.3 1.5.7, only applies the workaround for wine versions 1.5.4 through 1.5.6.
http://bugs.winehq.org/show_bug.cgi?id=30845
--- Comment #22 from Hans Leidekker hans@meelstraat.net 2012-06-28 13:24:14 CDT --- (In reply to comment #21)
I don't think that's the case; the line if w_workaround_wine_bug 30845 "Adding .NETFramework registry key. Ignore fatal error dialog if it pops up." ,1.5.3 1.5.7, only applies the workaround for wine versions 1.5.4 through 1.5.6.
So there's no Wine release where both workarounds are applied?
How does it fail?
http://bugs.winehq.org/show_bug.cgi?id=30845
--- Comment #23 from Sylvain Petreolle spetreolle@yahoo.fr 2012-06-28 15:00:37 CDT --- (In reply to comment #10)
Created attachment 40487 [details] patch
Here's an improved patch that makes the following recipe work:
- create fresh prefix
- wine uninstaller --remove '{E45D8920-A758-4088-B6C6-31DBB276992E}'
- set windows version to win2k
- WINEDLLOVERRIDES=mscoree,fusion=n wine dotnetfx.exe
Thanks, I can confirm your recipe works, and dotnet programs are usable after that. I'm using git HEAD.
I used the following : #!/bin/bash set -x export WINEPREFIX=/c/wineDotnet2 export WINE=/sources/wine-git/wine export WINETRICKS=/c/winetricks rm -rf $WINEPREFIX $WINE msiexec /i $HOME/wine-mono-0.0.4.msi $WINE uninstaller --remove '{E45D8920-A758-4088-B6C6-31DBB276992E}' sh $WINETRICKS win2k WINEDLLOVERRIDES=mscoree,fusion=n $WINE $HOME/.cache/winetricks/dotnet20/dotnetfx.exe
http://bugs.winehq.org/show_bug.cgi?id=30845
--- Comment #24 from Dan Kegel dank@kegel.com 2012-06-28 15:02:56 CDT --- This should work, too:
wget http://winetricks.googlecode.com/svn/trunk/src/winetricks sh winetricks dotnet20
If it doesn't, please email me.
http://bugs.winehq.org/show_bug.cgi?id=30845
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #25 from Dan Kegel dank@kegel.com 2012-06-29 23:04:42 CDT --- I think this is fixed; Hans' recipe has been implemented in Winetricks for a week or so now, and seems to work fine.
http://bugs.winehq.org/show_bug.cgi?id=30845
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #26 from Alexandre Julliard julliard@winehq.org 2012-07-03 14:15:08 CDT --- Closing bugs fixed in 1.5.8.
http://bugs.winehq.org/show_bug.cgi?id=30845
Oleg installer@live.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |installer@live.ru
http://bugs.winehq.org/show_bug.cgi?id=30845
Liam S. Crouch petterroea@skymiastudios.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |petterroea@skymiastudios.co | |m
--- Comment #27 from Liam S. Crouch petterroea@skymiastudios.com 2013-06-17 14:34:40 CDT --- Failed for me again, wine 1.4.1. This is the output:
petterroea@petterroea-sasha:~/Downloads$ sh winetricks dotnet20 Executing w_do_call dotnet20 Executing load_dotnet20 Executing w_do_call remove_mono Executing load_remove_mono ------------------------------------------------------ Mono does not appear to be installed. ------------------------------------------------------ Executing w_do_call fontfix Executing load_fontfix Setting Windows version to win2k Executing winetricks_early_wine regedit C:\windows\Temp_dotnet20\set-winver.reg Current wine does not have wine bug 10467, so not applying workaround Current wine does not have wine bug 30845, so not applying workaround ------------------------------------------------------ Working around wine bug 30845 -- Using native fusion while installing... ------------------------------------------------------ Executing env WINEDLLOVERRIDES=mscoree,fusion=n wine dotnetfx.exe fixme:advapi:DecryptFileA "C:\users\petterroea\Temp\IXP000.TMP\" 00000000 p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory fixme:advapi:LsaOpenPolicy ((null),0x33f310,0x00000001,0x33f2fc) stub fixme:advapi:LsaClose (0xcafe) stub fixme:storage:create_storagefile Storage share mode not implemented. err:msi:msi_load_all_components can't initialize assembly caches err:msi:msi_load_all_components can't initialize assembly caches fixme:msi:MsiGetLastErrorRecord err:msi:ITERATE_Actions Execution halted, action L"SxsInstallCA" returned 1603 ------------------------------------------------------ Note: command 'env WINEDLLOVERRIDES=mscoree,fusion=n wine dotnetfx.exe' returned status 67. Aborting. ------------------------------------------------------
http://bugs.winehq.org/show_bug.cgi?id=30845
--- Comment #28 from Austin English austinenglish@gmail.com 2013-06-17 16:02:21 CDT --- (In reply to comment #27)
Failed for me again, wine 1.4.1. This is the output:
The bug was fixed in 1.5.8, 1.4.1 still has it.
Try with the latest stable rc, 1.6-rc2
http://bugs.winehq.org/show_bug.cgi?id=30845
--- Comment #29 from Ben thebenj88@gmail.com 2013-08-01 08:27:47 CDT --- Created attachment 45474 --> http://bugs.winehq.org/attachment.cgi?id=45474 dotnet20 crash output in wine 1.6-rc5
http://bugs.winehq.org/show_bug.cgi?id=30845
Ben thebenj88@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |thebenj88@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=30845
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |a17ca164952526815e98a345a6f | |7513842baa535 CC| |focht@gmx.net Component|-unknown |msi
https://bugs.winehq.org/show_bug.cgi?id=30845
Sylvain Petreolle spetreolle@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|spetreolle@yahoo.fr |
https://bugs.winehq.org/show_bug.cgi?id=30845
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |https://web.archive.org/web | |/20101226004523/http://down | |load.microsoft.com/download | |/A/6/A/A6AC035D-DA3F-4F0C-A | |DA4-37C8E5D34E3D/winsdk_web | |.exe