# \#cpack:wix

**URL:** https://discourse.cmake.org/tag/cpack-wix/50.md

[Latest](https://discourse.cmake.org/latest.md) · [Categories](https://discourse.cmake.org/categories.md) · [Tags](https://discourse.cmake.org/tags.md)

---

## [CPack \`REQUIRED\` in \`cpack\_add\_component\` is not working as intended with WiX](https://discourse.cmake.org/t/cpack-required-in-cpack-add-component-is-not-working-as-intended-with-wix/15074)

<div class="topic-metadata">

**Author:** [@alina](https://discourse.cmake.org/u/alina)\
**Replies:** 1\
**Last updated:** [August 19, 2025, 11:20pm UTC](https://discourse.cmake.org/t/cpack-required-in-cpack-add-component-is-not-working-as-intended-with-wix/15074 "2025-08-19T23:20:49Z")

</div>

I am passing keyword REQUIRED to cpack\_add\_component, but the component my\_lib still shows as optional with the WiX msi installer, meaning the user can still select “feature will be installed when required,” and selectin…

---

## [WIX installer GUID clashes](https://discourse.cmake.org/t/wix-installer-guid-clashes/13118)

<div class="topic-metadata">

**Author:** [@mgerhardy](https://discourse.cmake.org/u/mgerhardy)\
**Replies:** 0\
**Last updated:** [December 4, 2024, 8:12am UTC](https://discourse.cmake.org/t/wix-installer-guid-clashes/13118 "2024-12-04T08:12:29Z")

</div>

Hello, I have a problem with wix errors regarding duplicated guids for files I add to a component. I have two components here voxedit voxconvert They both inherit files from a module they depend on (the lua scripts t…

---

## [CMAKE Wix Patch unclosed token error](https://discourse.cmake.org/t/cmake-wix-patch-unclosed-token-error/10807)

<div class="topic-metadata">

**Author:** [@mgerhardy](https://discourse.cmake.org/u/mgerhardy)\
**Replies:** 2\
**Last updated:** [May 5, 2024, 8:41pm UTC](https://discourse.cmake.org/t/cmake-wix-patch-unclosed-token-error/10807 "2024-05-05T20:41:11Z")

</div>

I have this wixpatch.xml file \<?xml version="1.0" encoding="UTF-8"?\> \<CPackWiXPatch\> \<!-- Fragment ID is from: \<your build dir\>/\_CPack\_Packages/win64/WIX/files.wxs --\> \<CPackWiXFragment Id="CM\_CP\_voxedit.voxedit.veng…

---

## [How to Pass CMake variables into Wix fragments?](https://discourse.cmake.org/t/how-to-pass-cmake-variables-into-wix-fragments/8664)

<div class="topic-metadata">

**Author:** [@gergap](https://discourse.cmake.org/u/gergap)\
**Replies:** 0\
**Last updated:** [August 2, 2023, 3:37pm UTC](https://discourse.cmake.org/t/how-to-pass-cmake-variables-into-wix-fragments/8664 "2023-08-02T15:37:54Z")

</div>

I’m currently struggeling with a custom CPackWiXPatch file where I’m referencing a bmp file for a dialog banner. I can use a hardcoded path (for testing) which works, but I need to make this relative to CMAKE\_SOURCE\_DIR…

---

## [Installer Has Qt Deploy Fixes But Archive Does Not](https://discourse.cmake.org/t/installer-has-qt-deploy-fixes-but-archive-does-not/7594)

<div class="topic-metadata">

**Author:** [@JohnRED](https://discourse.cmake.org/u/JohnRED)\
**Replies:** 2\
**Last updated:** [March 8, 2023, 6:18pm UTC](https://discourse.cmake.org/t/installer-has-qt-deploy-fixes-but-archive-does-not/7594 "2023-03-08T18:18:04Z")

</div>

I have a Qt application that runs the deploy command during installation and packaging. This works correctly when generating a Wix installer. However, when trying to create an archive, e.g. 7z, command is ran but the f…

---

## [CPack WIX generator does not create start menu shortcuts](https://discourse.cmake.org/t/cpack-wix-generator-does-not-create-start-menu-shortcuts/4656)

<div class="topic-metadata">

**Author:** [@hsattler](https://discourse.cmake.org/u/hsattler)\
**Replies:** 1\
**Last updated:** [December 14, 2021, 1:13pm UTC](https://discourse.cmake.org/t/cpack-wix-generator-does-not-create-start-menu-shortcuts/4656 "2021-12-14T13:13:43Z")

</div>

Hi, I tried for some time now but I simply cannot convince CPack’s WIX generator to add start menu shortcuts. According to documenation, all it should need is: set\_property ( INSTALL "$\<TARGET\_FILE\_NAME:MyExe\>" …
