https://bugs.winehq.org/show_bug.cgi?id=37856
Bug ID: 37856 Summary: BOINC 64-bit: Print button in installer doesn't do anything Product: Wine Version: 1.7.33 Hardware: x86-64 URL: http://boinc.berkeley.edu/dl/boinc_7.4.36_windows_x86_ 64.exe OS: Linux Status: NEW Keywords: download, Installer, printing, win64 Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: imwellcushtymelike@gmail.com Distribution: Ubuntu
Created attachment 50419 --> https://bugs.winehq.org/attachment.cgi?id=50419 Wine 1.7.33 +server [12.8 MiB]
The installer for the 64-bit (x86_64) version of BOINC 7.4.36 shows a licence agreement with a print button, to optionally print it. Clicking on "Print" doesn't do anything.
The 32-bit installer launches wordpad which gives you Bug 31848 (in both a 32-bit and 64-bit WINEPREFIX), but something is different about the 64-bit installer (or 64-bit Wine).
A +server trace when clicking on the Print button shows:
002b: create_file( access=80000000, attributes=00000040, sharing=00000005, create=1, options=00000060, attrs=00000000, objattr={rootdir=0000,sd={},name=L""}, filename="/home/ken/.wine/dosdevices/c:/users/ken/Temp/msi830b.tmp" ) 002b: create_file() = 0 { handle=00b4 } 002b: get_handle_fd( handle=00b4 ) 002b: *fd* 00b4 -> 95 002b: get_handle_fd() = 0 { type=1, cacheable=1, access=00120089, options=00000060 } 002b: create_mapping( access=000f0005, attributes=00000000, protect=00000145, size=00000000, file_handle=00b4, objattr={rootdir=0000,sd={},name=L""} ) 002b: create_mapping() = INVALID_IMAGE_FORMAT { handle=0000 } 002b: close_handle( handle=00b4 ) 002b: close_handle() = 0 002b: close_handle( handle=0000 ) 002b: close_handle() = INVALID_HANDLE 002b: *killed* exit_code=0
Full log attached.
BOINC is open source but I don't think there'll be source available for Installshield.
https://bugs.winehq.org/show_bug.cgi?id=37856
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net Component|-unknown |msi Summary|BOINC 64-bit: Print button |BOINC 64-bit: Print button |in installer doesn't do |in installer doesn't do |anything |anything (32-bit custom | |action erroneously executed | |in 64-bit MSI process)
--- Comment #1 from Anastasius Focht focht@gmx.net --- Hello folks,
confirming.
--- snip --- ... 0023:trace:msi:ACTION_CustomAction Handling custom action L"ISPrint" (1 L"SetAllUsers.dll" L"PrintScrollableText") 0023:trace:msi:HANDLE_CustomType1 Calling function L"PrintScrollableText" from L"C:\users\focht\Temp\msi6cbd.tmp" ... 0027:Call KERNEL32.LoadLibraryW(00089ee4 L"C:\users\focht\Temp\msi6cbd.tmp") ret=7fc5a2285976 ... 0027: create_mapping( access=000f0005, attributes=00000000, protect=00000145, size=00000000, file_handle=009c, objattr={rootdir=0000,sd={},name=L""} ) 0027: create_mapping() = INVALID_IMAGE_FORMAT { handle=0000 } 0027: close_handle( handle=009c ) 0027: close_handle() = 0 0027:Ret KERNEL32.LoadLibraryW() retval=00000000 ret=7fc5a2285976 0027:warn:msi:ACTION_CallDllFunction failed to load dll L"C:\users\focht\Temp\msi6cbd.tmp" (193) 0027:trace:msi:DllThread custom action (27) returned 0 0027:trace:msi:MsiCloseAllHandles 0027:trace:msi:MsiCloseHandle 1 0027:trace:msi:MsiCloseHandle handle 1 destroyed --- snip ---
The custom action dll is 32-bit:
--- snip --- $ file msic5d.tmp msi6cbd.tmp: PE32 executable (DLL) (GUI) Intel 80386, for MS Windows --- snip ---
Template summary property says it's a 64-bit package:
--- snip --- $ wine ./MsiInfo.Exe ./BOINC.msi
MsiInfo V 5.0 Copyright (c) Microsoft Corporation. All Rights Reserved
Class Id for the MSI storage is {000C1084-0000-0000-C000-000000000046}
[ 1][/c] Codepage = 1252 [ 2][/t] Title = BOINC for Windows [ 3][/j] Subject = BOINC [ 4][/a] Author = Space Sciences Laboratory, U.C. Berkeley [ 5][/k] Keywords = BOINC [ 6][/o] Comments = Downloads, executes, and uploads BOINC tasks [ 7][/p] Template(MSI CPU,LangIDs) = AMD64;1033 [ 8][/l] SavedBy = InstallShield [ 9][/v] Revision = {FF1DC089-0A12-4798-A38D-837ECD36E431} [11][/s] Printed = 2014/12/11 20:18:13 [12][/r] Created = 2014/12/11 20:18:13 [13][/q] LastSaved = 2014/12/11 20:18:13 [14][/g] Pages(MSI Version Used) = 200 [15][/w] Words(MSI Source and Elevation Prompt Type) = 0 [16][/h] Characters(MSI Transform) = 0 [18][/n] Application = InstallShield« 2011 - Professional Edition 17 [19][/u] Security = 1 --- snip ---
But that doesn't matter in end - packages are always to be processed as 32-bit by default, even if marked as 64-bit.
Each element which is destined for 64-bit has to have explicit 'msidbComponentAttributes64bit' set (which is the case for various components in this MSI).
The 32-bit bootstrapper setup process kicks off an 64-bit MSI installer process in 64-bit WINEPREFIX:
--- snip --- ... 0009:Call KERNEL32.CreateProcessW(00000000,00161264 L"MSIEXEC.EXE /i "C:\windows\Downloaded Installations\{FF1DC089-0A12-4798-A38D-837ECD36E431}\BOINC.msi" SETUPEXEDIR="Z:\home\focht\Downloads" SETUPEXENAME="boinc_7.4.36_windows_x86_64.exe"",00000000,00000000,00000000,00000020,00000000,00000000,0033c284,0033c2f0) ret=00442f5e ... 0023:Call KERNEL32.__wine_kernel_init() ret=7fc5a8f4ca1e ... 0009:Ret KERNEL32.CreateProcessW() retval=00000001 ret=00442f5e --- snip ---
Since the 32-bit custom action is tried to be executed in the 64-bit process this can't work. Either a 32-bit custom action server has to be kicked off or alternatively the client side has to be executed with 32-bit process.
Likely a dupe of already existing 32/64-bit MSI server + 32/64-bit custom action server bugs.
$ sha1sum boinc_7.4.36_windows_x86_64.exe c2334aa9696f11a3f50dac07d1648c6b77ef9ae2 boinc_7.4.36_windows_x86_64.exe
$ du -sh boinc_7.4.36_windows_x86_64.exe 8.9M boinc_7.4.36_windows_x86_64.exe
$ wine --version wine-1.7.33-146-g102d893
Regards
https://bugs.winehq.org/show_bug.cgi?id=37856
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winehq.der_poet@xoxy.net
--- Comment #2 from Anastasius Focht focht@gmx.net --- *** Bug 38560 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=37856
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|BOINC 64-bit: Print button |Multiple installers fail |in installer doesn't do |due to 32-bit custom |anything (32-bit custom |actions erroneously |action erroneously executed |executed in 64-bit MSI |in 64-bit MSI process) |process (packages needs to | |be processed as 32-bit by | |default, with relegation to | |32-bit server)
--- Comment #3 from Anastasius Focht focht@gmx.net --- Hello folks,
refining summary to collect further bugs here.
There might be more, older ones lurking around essentially about the same issue. Feel free to point them out.
$ wine --version wine-1.7.42-158-gf920dfd
Regards
https://bugs.winehq.org/show_bug.cgi?id=37856
Detlef Riekenberg wine.dev@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wine.dev@web.de
https://bugs.winehq.org/show_bug.cgi?id=37856
Luke Short ekultails@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ekultails@gmail.com
--- Comment #4 from Luke Short ekultails@gmail.com --- These seem to be possibly related problems:
https://bugs.winehq.org/show_bug.cgi?id=43864 https://bugs.winehq.org/show_bug.cgi?id=29941 https://bugs.winehq.org/show_bug.cgi?id=31741 https://bugs.winehq.org/show_bug.cgi?id=30713 https://bugs.winehq.org/show_bug.cgi?id=27943
Has this been fixed by https://bugs.winehq.org/show_bug.cgi?id=39319 ?
https://bugs.winehq.org/show_bug.cgi?id=37856
--- Comment #5 from Nikolay Sivov bunglehead@gmail.com --- (In reply to Luke Short from comment #4)
Has this been fixed by https://bugs.winehq.org/show_bug.cgi?id=39319 ?
No, it's unrelated.
https://bugs.winehq.org/show_bug.cgi?id=37856
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com
--- Comment #6 from Zebediah Figura z.figura12@gmail.com --- Bug #39319 is unrelated, but the other bugs (except possibly bug #30713?) and this one should indeed probably be marked duplicates, presumably of bug #27942.
https://bugs.winehq.org/show_bug.cgi?id=37856
--- Comment #7 from Zebediah Figura z.figura12@gmail.com --- (In reply to Zebediah Figura from comment #6)
Bug #39319 is unrelated, but the other bugs (except possibly bug #30713?) and this one should indeed probably be marked duplicates, presumably of bug #27942.
Sorry, that should be #27943.
https://bugs.winehq.org/show_bug.cgi?id=37856
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bojan@antonovic.ch
--- Comment #8 from Zebediah Figura z.figura12@gmail.com --- *** Bug 27943 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=37856
tokktokk fdsfgs@krutt.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs@krutt.org
https://bugs.winehq.org/show_bug.cgi?id=37856
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |6049b0f8c3637b6ef55b05a5789 | |3191ab808c69f
--- Comment #9 from Zebediah Figura z.figura12@gmail.com --- Fixed by https://source.winehq.org/git/wine.git/commitdiff/6049b0f8c3637b6ef55b05a578....
https://bugs.winehq.org/show_bug.cgi?id=37856
--- Comment #10 from Anastasius Focht focht@gmx.net --- Hi Zebediah,
confirming, it works now. Thanks.
The 64-bit installer relegates the 32-bit custom action now properly to 32-bit custom action server process. The "print button" works now and it runs into bug 31848 as reported.
I've also tested with 64-bit AngryBirds 4.0 installer (bug 38560) which now runs into bug 34989
Regards
https://bugs.winehq.org/show_bug.cgi?id=37856
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #11 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.8.
https://bugs.winehq.org/show_bug.cgi?id=37856
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mikhail.v.gavrilov@gmail.co | |m
--- Comment #12 from Anastasius Focht focht@gmx.net --- *** Bug 44472 has been marked as a duplicate of this bug. ***