http://bugs.winehq.org/show_bug.cgi?id=20444
Summary: msi installer fails instead of asking for another CD Product: Wine Version: 1.1.31 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: wylda@volny.cz
Created an attachment (id=24291) --> (http://bugs.winehq.org/attachment.cgi?id=24291) Installation of Doom 3 fails
Hi, i tried to install Doom3 CD version and it fails in a place, where should the installer ask for CD2. Windows message pops up:
Error: -1603 Fatal error during installation. Consult Windows Installer Help (Msi.chm) or MSDN for more information.
Console says:
err:msi:ACTION_InstallFiles Failed to copy L"F:\Setup\Data\base\pak000.pk4" to L"C:\Program Files\Doom 3\base\pak000.pk4" (2)
err:msi:ITERATE_Actions Execution halted, action L"InstallFinalize" returned 1603
File pak000.pk4 is indeed placed on CD2.
All the following wine tested versions fails: 1.0.1, 1.1.5, 1.1.10, 1.1.13, 1.1.19, 1.1.22, 1.1.30, 1.1.31
...so it probably never worked. The reason why people in AppDB says "install YES" is probably because of using DVD version of DOOM3 (works-tested myself, all files on one medium) or they installed it on Win and just run it under wine.
http://bugs.winehq.org/show_bug.cgi?id=20444
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |Installer Summary|msi installer fails instead |Doom3 CD version installer |of asking for another CD |fails instead of asking for | |another CD
http://bugs.winehq.org/show_bug.cgi?id=20444
--- Comment #1 from Wylda wylda@volny.cz 2010-02-27 17:21:35 ---
Still not fixed in wine-1.1.39-163-g583f0f0.
http://bugs.winehq.org/show_bug.cgi?id=20444
--- Comment #2 from Wylda wylda@volny.cz 2010-04-29 07:03:33 ---
Still present in wine-1.1.43-387-gce3c1df.
http://bugs.winehq.org/show_bug.cgi?id=20444
Hans Leidekker hans@meelstraat.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hans@meelstraat.net
--- Comment #3 from Hans Leidekker hans@meelstraat.net 2010-04-29 07:07:43 --- Please attach a +msi trace.
http://bugs.winehq.org/show_bug.cgi?id=20444
--- Comment #4 from Wylda wylda@volny.cz 2010-04-29 07:20:09 --- Created an attachment (id=27614) --> (http://bugs.winehq.org/attachment.cgi?id=27614) console log from wine-1.1.43-387-gce3c1df +msi
Here you are.
http://bugs.winehq.org/show_bug.cgi?id=20444
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |msi
--- Comment #5 from Wylda wylda@volny.cz 2010-05-09 02:59:12 ---
Still present in wine-1.1.44
http://bugs.winehq.org/show_bug.cgi?id=20444
--- Comment #6 from Wylda wylda@volny.cz 2010-05-28 14:54:16 ---
When i saw, that bug 10287 has already a commit for code 1603 i thought, it could help also here. Unfortunately installer still fails instead of asking for another CD.
Tested under wine-1.2-rc2.
http://bugs.winehq.org/show_bug.cgi?id=20444
--- Comment #7 from Wylda wylda@volny.cz 2010-06-19 21:28:27 ---
Still present in wine-1.2-rc4
http://bugs.winehq.org/show_bug.cgi?id=20444
--- Comment #8 from Wylda wylda@volny.cz 2010-08-28 17:51:59 CDT ---
Still doesn't ask please insert CD2. Tested under: wine-1.3.1-267-g7ab48e8
http://bugs.winehq.org/show_bug.cgi?id=20444
paulo i30817@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |i30817@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=20444
--- Comment #9 from Wylda wylda@volny.cz 2010-12-11 16:05:37 CST ---
Still doesn't ask please insert CD2. Tested under: wine-1.3.9.
http://bugs.winehq.org/show_bug.cgi?id=20444
Hans Leidekker hans@meelstraat.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |lukasz.wojnilowicz@gmail.co | |m
--- Comment #10 from Hans Leidekker hans@meelstraat.net 2011-08-09 03:30:00 CDT --- *** Bug 27995 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=20444
--- Comment #11 from Hans Leidekker hans@meelstraat.net 2011-12-05 03:28:40 CST --- Does the patch from bug 25963 help here?
http://bugs.winehq.org/show_bug.cgi?id=20444
--- Comment #12 from Wylda wylda@volny.cz 2011-12-08 15:22:04 CST --- (In reply to comment #11)
Does the patch from bug 25963 help here?
Hi Hans, unfortunately it makes no difference. I still get the error message like in comment #0.
Still doesn't ask please insert CD2. Tested under: wine-1.3.34-166-g71199ea (both vanilla and patched wine).
http://bugs.winehq.org/show_bug.cgi?id=20444
--- Comment #13 from Wylda wylda@volny.cz 2012-05-05 04:33:37 CDT ---
There is some progress here :) In wine-1.5.3-164-gdec3d50 a window pops up saying:
"Please insert: DOOM 3 Disk 2"
strangely this windows is labeled "Doom 3 Error" and has choices "Retry" and "Cancel". Unfortunately none of these two buttons work. "Retry" & "Cancel" asks again and again for CD2 even though i tried many things with replacing CD which works for other multi CD games.
http://bugs.winehq.org/show_bug.cgi?id=20444
Matyas Csanyi matejcs@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |matejcs@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=20444
Jarkko K jarkko_korpi@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jarkko_korpi@hotmail.com
--- Comment #14 from Jarkko K jarkko_korpi@hotmail.com --- 2 Years have passed. Would it be time to try this again?
https://bugs.winehq.org/show_bug.cgi?id=20444
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #15 from Wylda wylda@volny.cz ---
And again there is some progress :) In wine-1.7.28 a window pops, correctly asking for CD2 and then for CD3. One can see, as the folder "C:\Program Files\Doom3" fills up as CDs are changed.
Unfortunately, at the very end is says, install failed and immediately deletes the whole folder "C:\Program Files\Doom3".
So the workaround for playing DOOM 3 under wine is to buy a 1x DVD edition instead of 3x CD edition of DOOM ;)
https://bugs.winehq.org/show_bug.cgi?id=20444
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net
--- Comment #16 from Anastasius Focht focht@gmx.net --- Hello Wylda,
please attach a trace log generated as follows:
Bootstrap a clean WINEPREFIX using Wine builtin -> keep it running (to avoid too much noise)
--- snip --- $ WINEDEBUG=+tid,+seh,+loaddll,+process,+msi,+msgbox wine ./foo.exe >>log.txt 2>&1 --- snip ---
Regards
https://bugs.winehq.org/show_bug.cgi?id=20444
--- Comment #17 from Wylda wylda@volny.cz --- Created attachment 49688 --> https://bugs.winehq.org/attachment.cgi?id=49688 wine-1.7.28 log with +tid,+seh,+loaddll,+process,+msi,+msgbox
Here is the log. Recap for sure. New wineprefix, winetricks alldlls=builtin, "wine notepad" kept running in other console within same prefix and then run the setup with requested channels. Hope i did that right.
https://bugs.winehq.org/show_bug.cgi?id=20444
--- Comment #18 from Anastasius Focht focht@gmx.net --- Hello Wylda,
relevant part of trace log:
--- snip --- ... 0025:trace:process:create_process_impl app (null) cmdline L"C:\PROG~FBU\COMM~CP1\INST~JM1\Driver\9\INTE~MEX\IDriver.exe -Embedding" ... 0027:trace:process:__wine_kernel_init starting process name=L"C:\Program Files\Common Files\InstallShield\Driver\9\Intel 32\IDriver.exe" argv[0]=L"C:\PROG~FBU\COMM~CP1\INST~JM1\Driver\9\INTE~MEX\IDriver.exe" ... 0025:trace:process:create_process_impl started process pid 0026 tid 0027 ... 004a:trace:msi:MsiInstallProductA "D:\Doom 3.msi" "ADDLOCAL=Executable,Pak1,Pak2,Pak3,CallBack,Base,LocAssets,SplashDisk1,SplashDisk2,SplashDisk3,Docs,Version.inf,Extras,Ereg ACTIVISION=C:\Data\ ALLUSERS=1 ALLUSERSPROFILE=C:\users\Public\ ARPHELPLINK=http://activision.custhelp.com ARPNOMODIFY=1 ARPNOREPAIR=1 ARPURLINFOABOUT=http://www.activision"... ... 004a:trace:msi:msi_load_media_info sequence 104 -> cabinet (null) disk id 4 004a:trace:msi:msi_resolve_file_source Working to resolve source of file L"game00.pk4" 004a:trace:msi:msi_resolve_source_folder working to resolve L"BASE" 004a:trace:msi:msi_resolve_source_folder already resolved to L"D:\Setup\Data\base\" 004a:trace:msi:msi_resolve_file_source file L"game00.pk4" source resolves to L"D:\Setup\Data\base\game00.pk4" 004a:trace:msi:ACTION_InstallFiles copying L"D:\Setup\Data\base\game00.pk4" to L"C:\Program Files\Doom 3\base\game00.pk4" 004a:trace:msi:copy_install_file Copying L"D:\Setup\Data\base\game00.pk4" to L"C:\Program Files\Doom 3\base\game00.pk4" 004a:err:msi:ACTION_InstallFiles Failed to copy L"D:\Setup\Data\base\game00.pk4" to L"C:\Program Files\Doom 3\base\game00.pk4" (2) 004a:trace:msi:MSI_ProcessMessage 4000000 004a:trace:msi:MSI_ProcessMessage 0x45b982 (nil) (nil) fff 10 L"Action ended 17:49:44: InstallFiles. Return value 1603." 004a:trace:msi:msiobj_release object 0x211ff08 destroyed 004a:trace:msi:ACTION_HandleStandardAction scheduling rollback action 004a:trace:msi:msi_schedule_action Scheduling action L"RemoveFiles" in script 2 004a:err:msi:ITERATE_Actions Execution halted, action L"InstallFiles" returned 1603 ... 004a:trace:msi:MSI_ProcessMessage 0x45b982 (nil) (nil) fff 10 L"Action ended 17:49:45: ProcessComponents. Return value 0." 004a:trace:msi:msiobj_release object 0x20efeb8 destroyed ... 0027:trace:msgbox:MSGBOX_OnInit L"Error: -1603 Fatal error during installation.\n\nConsult Windows Installer Help (Msi.chm) or MSDN for more information." ... --- snip ---
The file 'game00.pk4' with size 953718 bytes should have been on CD3 ('D:\Setup\Data\base\game00.pk4')?
Is it somewhere else (CD1/2/3, path)?
Regards
https://bugs.winehq.org/show_bug.cgi?id=20444
--- Comment #19 from Wylda wylda@volny.cz ---
No, its on CD1.
CD1 /Setup/Data/base/ folder content:
953.718 Jul 8 2004 game00.pk4 416.937.674 Jul 8 2004 pak002.pk4
CD2 /Setup/Data/base/ folder content:
353.159.257 Jul 10 2004 pak000.pk4 229.649.726 Jul 8 2004 pak001.pk4
CD3 /Setup/Data/base/ folder content: 317.590.154 Jul 8 2004 pak003.pk4 237.75.2384 Jul 5 2004 pak004.pk4
https://bugs.winehq.org/show_bug.cgi?id=20444
--- Comment #20 from Anastasius Focht focht@gmx.net --- Hello Wylda,
thanks for the info.
There is something wrong with the installation order (sequence) of files, not limited to 'game00.pk4' (that's the visible part where it breaks).
Unfortunately the MSI database 'Doom 3.msi' would be needed for further investigation to dump some tables from with ORCA (file table, media table).
Regards
https://bugs.winehq.org/show_bug.cgi?id=20444
--- Comment #21 from Anastasius Focht focht@gmx.net --- Hello Wylda,
thanks for the MSI database file :)
I think I've identified the problem.
'File' table, dumped with ORCA:
--- snip --- File Component_ FileName FileSize Version Language Attributes Seq s72 s72 l255 i4 S72 S20 I2 i2
_08BBF... Executable Doom3.exe 5427200 1.0.0.1 1033 8192 1 pak002.pk4 Pak1 pak002.pk4 416937674 8192 2 ... pak000.pk4 Pak2 pak000.pk4 353159257 8192 76 pak001.pk4 Pak2 pak001.pk4 229649726 8192 77 ... pak003.pk4 Pak3 pak003.pk4 317590154 8192 90 pak004.pk4 Pak3 pak004.pk4 237752384 8192 91 ... game00.pk4 CallBack game00.pk4 953718 8192 104 --- snip ---
'Media' table, dumped with ORCA:
--- snip --- DiskId LastSequence DiskPrompt Cabinet VolumeLabel Source i2 i2 L64 S255 S32 S72
1 75 DOOM 3 Disk 1 DOOM3_1 2 89 DOOM 3 Disk 2 DOOM3_2 3 103 DOOM 3 Disk 3 DOOM3_3 4 104 DOOM 3 Disk 1 DOOM3_1 --- snip ---
The problem is that 'game00.pk4' has sequence number 104 which references disk id 4 in the Media table - which is the first disk again -> volume label 'DOOM3_1'.
--- snip --- ... 004a:trace:msi:MSI_DatabaseOpenViewW L"SELECT * FROM `Media` WHERE `LastSequence` >= 104 ORDER BY `DiskId`" 0x448d298 ... 004a:trace:msi:msi_get_property returning L"D:\" for property L"SourceDir" 004a:trace:msi:msi_load_media_info sequence 104 -> cabinet (null) disk id 4 004a:trace:msi:msi_resolve_file_source Working to resolve source of file L"game00.pk4" 004a:trace:msi:msi_resolve_source_folder working to resolve L"BASE" 004a:trace:msi:msi_resolve_source_folder already resolved to L"D:\Setup\Data\base\" 004a:trace:msi:msi_resolve_file_source file L"game00.pk4" source resolves to L"D:\Setup\Data\base\game00.pk4" 004a:trace:msi:ACTION_InstallFiles copying L"D:\Setup\Data\base\game00.pk4" to L"C:\Program Files\Doom 3\base\game00.pk4" 004a:trace:msi:copy_install_file Copying L"D:\Setup\Data\base\game00.pk4" to L"C:\Program Files\Doom 3\base\game00.pk4" 004a:err:msi:ACTION_InstallFiles Failed to copy L"D:\Setup\Data\base\game00.pk4" to L"C:\Program Files\Doom 3\base\game00.pk4" (2) --- snip ---
There is probably some reasoning behind this.
By putting a file from the first CD into highest sequence/disk id, the user is automatically forced to change to CD1 again at the end of installation. This avoids "Please insert CD1 for game verification" when starting the game. CD1 is probably used for DRM verification scheme (SafeDisc?).
Wine's msi unfortunately doesn't anticipate such case and fails here.
Source: http://source.winehq.org/git/wine.git/blob/953359c73f5c609132e6d7caea0947d16...
--- snip --- 857 UINT ready_media( MSIPACKAGE *package, BOOL compressed, MSIMEDIAINFO *mi ) 858 { ... 893 /* check volume matches, change media if not */ 894 if (mi->volume_label && mi->disk_id > 1 && strcmpW( mi->first_volume, mi->volume_label )) 895 { ... --- snip ---
The volume label string comparison used here breaks this, when a file references the first volume again, after changing the media at least once.
Regards
https://bugs.winehq.org/show_bug.cgi?id=20444
--- Comment #22 from Hans Leidekker hans@meelstraat.net --- Created attachment 49692 --> https://bugs.winehq.org/attachment.cgi?id=49692 patch
Can you try this patch?
https://bugs.winehq.org/show_bug.cgi?id=20444
NSLW lukasz.wojnilowicz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|lukasz.wojnilowicz@gmail.co | |m |
https://bugs.winehq.org/show_bug.cgi?id=20444
--- Comment #23 from Wylda wylda@volny.cz ---
Can you try this patch?
Yes, it fixes the bug! Thank you both for your effort to make this fixed.
I found something more and opened bug 37370.
https://bugs.winehq.org/show_bug.cgi?id=20444
--- Comment #24 from Wylda wylda@volny.cz --- Forgot to mention. After CD3 it truly asks you for CD1 again because of
https://bugs.winehq.org/show_bug.cgi?id=20444
--- Comment #25 from Wylda wylda@volny.cz --- Forgot to mention. After CD3 it truly asks you for CD1 again because of Safedisk protection. Exactly as you predicted, Focht ;) But the protection was removed later anyway:
* Doom3-v1.0.1262.exe - on CD - SafeDisc v3.20.022 * Doom3-v1.0.1282.exe - v1.1 - SafeDisc v3.20.022 * Doom3-v1.2.1287.exe - v1.2 - no safedisk * Doom3-v1.3.1302.exe - v1.3 - no safedisk
https://bugs.winehq.org/show_bug.cgi?id=20444
--- Comment #26 from Wylda wylda@volny.cz --- Hi Hans, i noticed that the patch didn't hit wine-patches nor staging queue. Is that intentional?
https://bugs.winehq.org/show_bug.cgi?id=20444
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
https://bugs.winehq.org/show_bug.cgi?id=20444
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |5cb10c96b26d07b7d0aabe3b8e3 | |37c7ce144b8af Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #27 from Austin English austinenglish@gmail.com --- (In reply to Wylda from comment #26)
Hi Hans, i noticed that the patch didn't hit wine-patches nor staging queue. Is that intentional?
https://source.winehq.org/patches/data/107075
https://source.winehq.org/git/wine.git/commitdiff/5cb10c96b26d07b7d0aabe3b8e...
https://bugs.winehq.org/show_bug.cgi?id=20444
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #28 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.29.