# Install to $COMMONFILES with nsis

**URL:** https://discourse.cmake.org/t/install-to-commonfiles-with-nsis/4802
**Category:** Code
**Tags:** os:windows, cpack:nsis
**Created:** [January 9, 2022, 9:53am UTC](https://discourse.cmake.org/t/install-to-commonfiles-with-nsis/4802 "2022-01-09T09:53:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![abique](https://discourse.cmake.org/user_avatar/discourse.cmake.org/abique/32/1486_2.png) [@abique](https://discourse.cmake.org/u/abique)
#### Post date: [January 9, 2022, 9:53am UTC](https://discourse.cmake.org/t/install-to-commonfiles-with-nsis/4802/1 "2022-01-09T09:53:34Z")

</div>

Hi,

I want to install some files into $COMMONFILES, but I don’t know how to do that, cpack:nsis puts everything into program files.

Do you know how to solve it?

Thank you.

---

<div class="post-metadata">

### Author: ![McMartin](https://discourse.cmake.org/user_avatar/discourse.cmake.org/mcmartin/32/150_2.png) [@McMartin](https://discourse.cmake.org/u/McMartin)
#### Post date: [January 17, 2022, 8:11am UTC](https://discourse.cmake.org/t/install-to-commonfiles-with-nsis/4802/2 "2022-01-17T08:11:37Z")

</div>

I’ve never used NSIS, so I might be off, but I guess you’re looking for [`CPACK_NSIS_<compName>_INSTALL_DIRECTORY`](https://cmake.org/cmake/help/latest/cpack_gen/nsis.html#variable:CPACK_NSIS_%3CcompName%3E_INSTALL_DIRECTORY)

---

<div class="post-metadata">

### Author: ![abique](https://discourse.cmake.org/user_avatar/discourse.cmake.org/abique/32/1486_2.png) [@abique](https://discourse.cmake.org/u/abique)
#### Post date: [January 17, 2022, 9:07am UTC](https://discourse.cmake.org/t/install-to-commonfiles-with-nsis/4802/3 "2022-01-17T09:07:45Z")

</div>

Very interesting! 🙂
