Repository navigation
Installer dll fix - #7995
Installer dll fix#7995
Conversation
…n running TOPP executables on Win10
WalkthroughThe change updates a CMake script by adding a clarifying comment about the purpose of an exclusion list for Windows DLLs, emphasizing that these are system DLLs not to be distributed with the installer. Additionally, three more DLLs—"DWrite", "userenv", and "D3D12"—are added to this exclusion list. No other logic or exported/public entities are modified. Changes
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (2)
cmake/package_general.cmake (2)
72-72: Nitpick: improve grammar in the exclusion commentThe comment uses "dll's" as a plural, which is grammatically incorrect. Consider rephrasing to:
# Exclude system DLLs to avoid bloating the installer and causing incompatibilities
73-73: Ensure case‑insensitive matching for EXCLUDE regex patternsCMake’s regex evaluation is case‑sensitive by default, so adding mixed‑case entries like
"DWrite"and"D3D12"may not catch all DLL filenames. To guarantee these system DLLs are excluded regardless of case, either normalize the patterns to lowercase or prepend an inline case‑insensitive flag. For example:-set(EXCLUDE "api-ms" "ext-ms" "hvsi" "pdmutilities" "wpaxholder" "dxgi" "uxtheme" "d3d11" "winmm" "wldp" "DWrite" "userenv" "D3D12") +set(EXCLUDE "api-ms" "ext-ms" "hvsi" "pdmutilities" "wpaxholder" "dxgi" "uxtheme" "d3d11" "winmm" "wldp" "dwrite" "userenv" "d3d12")Or to keep mixed case and use regex flags:
-set(EXCLUDE "..." "DWrite" "userenv" "D3D12") +set(EXCLUDE "(?i)dwrite" "(?i)userenv" "(?i)d3d12" ...)Please verify which approach aligns with CPack’s regex handling.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
cmake/package_general.cmake(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (5)
- GitHub Check: build-and-test (windows-2022, cl.exe, default)
- GitHub Check: build-and-test (ubuntu-22.04, clang++, 15)
- GitHub Check: build-and-test (macos-14, xcode, 15.0.1)
- GitHub Check: build-and-test (macos-13, xcode, 14.2)
- GitHub Check: build-and-test (ubuntu-22.04, g++, 11)
|
That was also my suggestion. From my understanding however, @pjones commented on the last issue that deleting the dlls did not help. |
@jpfeuffer It turns out that there are two different problems occurring on some Windows 10 installs. Removing the DLLs exposes a second bug relating to Qt not being able to find its platform files. We don't have a fix for that second problem yet. |
|
Ah I see. Makes sense. |
Almost all Dll's listed in Currently investigating.... |
|
By the way, I had an idea why the exclusion might not work. Maybe we have some other CMake code that copies the dependencies to the bin folder first (e.g., for the KNIME package). Then RUNTIME_DEPENDENCY_SET might find the dlls there instead of in system32 and therefore put them into the installer as well. |
|
Building the Windows installer should not have KNIME package stuff active, right? At least I did not fiddle with KNIME when creating an installer locally (why would you?). |
|
Locally no, on CI, maybe. In any case, one could check if the dlls are in the build folder before install? If so, this might be a reason. |
Description
Exclude dlls packared with pre 3.4 installer, causing cxxframehandler errors when running TOPP executables on Win10.
Checklist
How can I get additional information on failed tests during CI
Click to expand
If your PR is failing you can check outIf you click in the column that lists the failed tests you will get detailed error messages.
Advanced commands (admins / reviewer only)
Click to expand
/reformat(experimental) applies the clang-format style changes as additional commit. Note: your branch must have a different name (e.g., yourrepo:feature/XYZ) than the receiving branch (e.g., OpenMS:develop). Otherwise, reformat fails to push.rebuild jenkinswill retrigger Jenkins-based CI buildsSummary by CodeRabbit
Documentation
Chores