# Where does the Component parts of CPack + Wix go

**URL:** https://discourse.cmake.org/t/where-does-the-component-parts-of-cpack-wix-go/5532
**Category:** Usage
**Created:** [April 25, 2022, 8:22pm UTC](https://discourse.cmake.org/t/where-does-the-component-parts-of-cpack-wix-go/5532 "2022-04-25T20:22:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jshanab](https://discourse.cmake.org/user_avatar/discourse.cmake.org/jshanab/32/2555_2.png) [@jshanab](https://discourse.cmake.org/u/jshanab)
#### Post date: [April 25, 2022, 8:22pm UTC](https://discourse.cmake.org/t/where-does-the-component-parts-of-cpack-wix-go/5532/1 "2022-04-25T20:22:13Z")

</div>

I need to generate a Wix Package for a windows service which seems to require me to create custom wix template.

I tried the same with NSIS and was successfull unitl they asked for some Wix specific stuff.

So I copied the Wix template into my modules dir and was surprised to see how thin it is.  
I need to edit the part of the Wix that is associated with the component that is the service. (there is a lib, test executable and unit tests)

Am I suppose to set CPACK and WIX variables in each component along side the install, is that how the “\<Component” part of the wxs xml should be created?
