From 89efa94a2d8d14bfa29f6f8bb094f8e18b68b0f1 Mon Sep 17 00:00:00 2001 From: Ray Molenkamp Date: Fri, 17 Jan 2025 18:45:26 +0100 Subject: [PATCH] Fix #132198: Remove license dialog from the msi installer This also removes the component selection, made sense when you could install both blender and the game-engine player individually but since the game-engine got removed the dialog is a bit strange, as if one were to turn any of the components off you'd end up with a non-functional blender. The wix documentation [1] has the details on how/why the license dialog skip works. [1] https://wixtoolset.org/docs/v3/wixui/wixui_customizations/#changing-the-ui-sequence-of-a-built-in-dialog-set Pull Request: https://projects.blender.org/blender/blender/pulls/132308 --- build_files/cmake/packaging.cmake | 7 +- .../windows/installer_wix/WixUI_Blender.wxs | 78 +++++++++++++++++++ 2 files changed, 83 insertions(+), 2 deletions(-) create mode 100644 release/windows/installer_wix/WixUI_Blender.wxs diff --git a/build_files/cmake/packaging.cmake b/build_files/cmake/packaging.cmake index 244e1110625..03dffd98085 100644 --- a/build_files/cmake/packaging.cmake +++ b/build_files/cmake/packaging.cmake @@ -91,7 +91,9 @@ if(WIN32) set(CPACK_NSIS_MUI_ICON ${CMAKE_SOURCE_DIR}/release/windows/icons/winblender.ico) set(CPACK_NSIS_COMPRESSOR "/SOLID lzma") - + + # Eventhough we no longer display this, we still need to set it otherwise it'll throw an error + # during the msi build. set(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_SOURCE_DIR}/release/license/spdx/GPL-3.0-or-later.txt) set(CPACK_WIX_PRODUCT_ICON ${CMAKE_SOURCE_DIR}/release/windows/icons/winblender.ico) @@ -106,7 +108,8 @@ if(WIN32) set(CPACK_WIX_TEMPLATE ${CMAKE_SOURCE_DIR}/release/windows/installer_wix/WIX.template) set(CPACK_WIX_UI_BANNER ${CMAKE_SOURCE_DIR}/release/windows/installer_wix/WIX_UI_BANNER.bmp) set(CPACK_WIX_UI_DIALOG ${CMAKE_SOURCE_DIR}/release/windows/installer_wix/WIX_UI_DIALOG.bmp) - + set(CPACK_WIX_EXTRA_SOURCES ${CMAKE_SOURCE_DIR}/release/windows/installer_wix/WixUI_Blender.wxs) + set(CPACK_WIX_UI_REF "WixUI_Blender") set(CPACK_WIX_LIGHT_EXTRA_FLAGS -dcl:medium) endif() diff --git a/release/windows/installer_wix/WixUI_Blender.wxs b/release/windows/installer_wix/WixUI_Blender.wxs new file mode 100644 index 00000000000..cb34be5d878 --- /dev/null +++ b/release/windows/installer_wix/WixUI_Blender.wxs @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + "1"]]> + + 1 + + NOT Installed + Installed AND PATCH + + 1 + 1 + NOT WIXUI_DONTVALIDATEPATH + "1"]]> + WIXUI_DONTVALIDATEPATH OR WIXUI_INSTALLDIR_VALID="1" + 1 + 1 + + NOT Installed + Installed AND NOT PATCH + Installed AND PATCH + + 1 + + 1 + 1 + 1 + + + + + + +