diff -bur krita-5.1.5-orig/CMakeLists.txt krita-5.1.5/CMakeLists.txt
--- krita-5.1.5-orig/CMakeLists.txt	2023-02-27 15:37:41.476090100 -0700
+++ krita-5.1.5/CMakeLists.txt	2023-02-27 15:38:09.784301300 -0700
@@ -1176,11 +1176,6 @@
 check_function_exists(powf HAVE_POWF)
 configure_file(config-powf.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-powf.h)
 
-if(WIN32)
-    include(${CMAKE_CURRENT_LIST_DIR}/packaging/windows/installer/ConfigureInstallerNsis.cmake)
-    include(${CMAKE_CURRENT_LIST_DIR}/packaging/windows/msix/ConfigureMsixFiles.cmake)
-endif()
-
 message("\nBroken tests:")
 foreach(tst ${KRITA_BROKEN_TESTS})
     message("    * ${tst}")
diff -bur krita-5.1.5-orig/krita/CMakeLists.txt krita-5.1.5/krita/CMakeLists.txt
--- krita-5.1.5-orig/krita/CMakeLists.txt	2023-02-27 15:37:41.475085500 -0700
+++ krita-5.1.5/krita/CMakeLists.txt	2023-02-27 15:38:01.992654600 -0700
@@ -41,13 +41,6 @@
     ecm_add_app_icon(krafile_dummy_ICONS_SRCS ICONS ${krafile_ICON_SRCS} OUTFILE_BASENAME kritafile)
     add_library(krafile_dummy_obj OBJECT ${krafile_dummy_ICONS_SRCS})
 
-    # These icons are used to replace those in the shell extension package.
-    install(
-        FILES
-            ${CMAKE_CURRENT_BINARY_DIR}/krita.ico
-            ${CMAKE_CURRENT_BINARY_DIR}/kritafile.ico
-        DESTINATION ${CMAKE_INSTALL_PREFIX}/installer
-    )
 else()
     ecm_add_app_icon(krita_SRCS ICONS ${ICON_SRCS})
 endif()
