CPack/WiX: Exclude WixUIExtension from the WiX Generator
Hello Everyone,
I have a rather complicated use case for generating a windows installer. We would like to use the WiX generator to generate an msi installer, but we would like to customize it and adapt it to the UX of our own program. The suggested way of doing that [1] is by defying our dialogs and removing the references to the WixUIExtensions. Unfortunately, the WixUIExtensions seems to be hard-coded in the source code (https://gitlab.kitware.com/cmake/cmake/-/blob/v3.21.3/Source/CPack/WiX/cmCPackWIXGenerator.cxx#L221). If we try to generate the installer with cpack I am getting duplicate errors
C:\...\FilesInUse.wxs(8) : error LGHT0091 : Duplicate symbol 'Dialog:FilesInUse' found. This typically means that an Id is duplicated. Check to make sure all your identifiers of a given type (File, Component, Feature) are unique.
Is there a way of removing the WixUIExtensions or alternative is there an another way of defining our own custom dialogs?
Kind regards, Vasileios
[1] at least from the https://www.packtpub.com/product/wix-3-6-a-developer-s-guide-to-windows-installer-xml/9781782160427 book