https://bugs.winehq.org/show_bug.cgi?id=42808
Bug ID: 42808 Summary: msi: parent feature level is not propagated recursively on a whole subfeatures hierarchy Product: Wine Version: 1.8.6 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: msi Assignee: wine-bugs@winehq.org Reporter: anton.nikolaevsky@gmail.com Distribution: ---
Created attachment 57840 --> https://bugs.winehq.org/attachment.cgi?id=57840 sample MSI package triggering bug
INITIAL CONDITIONS Have MSI package with: 1. 3 Features "A", "B" and "C" set up into the hierarchy where "A" is the parent feature of "B" and "B" is the parent feature of "C"; 2. Property "INSTALLTYPE" with default value "0"; 3. Condition setting Level of the Feature "A" to "0" (i.e. disables the feature) when INSTALLTYPE is not "0" 4. CustomAction "RunWithC" that is invoked when Feature "C" is to be installed.
SCENARIO 1. Run the installer on Windows with the following command line: msiexec /i wine_msi_bug.msi /L*vx install.log /quiet INSTALLTYPE="1" Expected: CustomAction "RunWithC" has been skipped Actual: the same 2. Run the installer using WINE with the following command line: WINEDEBUG=+msi,+msidb,+msiexec wine msiexec.exe /i wine_msi_bug.msi '/L*vx' install.log /quiet INSTALLTYPE="1" >& wine.log Expected: CustomAction "RunWithC" has been skipped Actual: CustomAction "RunWithC" has been executed
The difference can be clearly seen when comparing produced logs for both platforms: all 3 features are marked as skipped on Windows, only "A" and "B" are marked as skipped with WINE.
https://bugs.winehq.org/show_bug.cgi?id=42808
--- Comment #1 from Anton Nikolaevsky anton.nikolaevsky@gmail.com --- Created attachment 57841 --> https://bugs.winehq.org/attachment.cgi?id=57841 installation log from Windows
https://bugs.winehq.org/show_bug.cgi?id=42808
--- Comment #2 from Anton Nikolaevsky anton.nikolaevsky@gmail.com --- Created attachment 57842 --> https://bugs.winehq.org/attachment.cgi?id=57842 installation log from WINE
wine.log: 10392 trace:msi:MSI_SetFeatureStates examining feature L"A" (level 0 installed 2 request -1 action -1) 10393 trace:msi:MSI_SetFeatureStates examining feature L"C" (level 1 installed 2 request 3 action 3) 10394 trace:msi:MSI_SetFeatureStates examining feature L"B" (level 1 installed 2 request -1 action -1)
https://bugs.winehq.org/show_bug.cgi?id=42808
--- Comment #3 from Anton Nikolaevsky anton.nikolaevsky@gmail.com --- Created attachment 57843 --> https://bugs.winehq.org/attachment.cgi?id=57843 WiX utility source file for sample MSI package generation
https://bugs.winehq.org/show_bug.cgi?id=42808
--- Comment #4 from Anton Nikolaevsky anton.nikolaevsky@gmail.com --- Created attachment 57845 --> https://bugs.winehq.org/attachment.cgi?id=57845 Windows batch script to generate sample MSI package using WiX toolset
https://bugs.winehq.org/show_bug.cgi?id=42808
Anton Nikolaevsky anton.nikolaevsky@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |Installer
https://bugs.winehq.org/show_bug.cgi?id=42808
Anton Nikolaevsky anton.nikolaevsky@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |anton.nikolaevsky@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=42808
--- Comment #5 from Hans Leidekker hans@meelstraat.net --- Created attachment 57854 --> https://bugs.winehq.org/attachment.cgi?id=57854 patch
Thanks for the nice test case. Does this patch help?
https://bugs.winehq.org/show_bug.cgi?id=42808
--- Comment #6 from Anton Nikolaevsky anton.nikolaevsky@gmail.com --- Hi Hans,
Thanks for a quick reply. The patch, indeed, resolves the issue.
https://bugs.winehq.org/show_bug.cgi?id=42808
Hans Leidekker hans@meelstraat.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Fixed by SHA1| |d94653d0ebbfd5d48cba4e9d973 | |31f65023d0d07 Status|UNCONFIRMED |RESOLVED
--- Comment #7 from Hans Leidekker hans@meelstraat.net --- Should be fixed by d94653d0ebbfd5d48cba4e9d97331f65023d0d07.
https://bugs.winehq.org/show_bug.cgi?id=42808
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 2.7.