# \#cpack:nsis

**URL:** https://discourse.cmake.org/tag/cpack-nsis/51.md

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

---

## [NSIS CPack generator forcibly overwrites $INSTDIR to $DOCUMENTS for per-user JustMe installs](https://discourse.cmake.org/t/nsis-cpack-generator-forcibly-overwrites-instdir-to-documents-for-per-user-justme-installs/15632)

<div class="topic-metadata">

**Author:** [@Nyoma\_Diamond](https://discourse.cmake.org/u/Nyoma_Diamond)\
**Replies:** 0\
**Last updated:** [April 27, 2026, 2:17pm UTC](https://discourse.cmake.org/t/nsis-cpack-generator-forcibly-overwrites-instdir-to-documents-for-per-user-justme-installs/15632 "2026-04-27T14:17:10Z")

</div>

Hiya I’ve run into an issue with using the NSIS generator for CPack where it’s not possible to change the default install location for per-user JustMe installs. Specifically, if you wanted to change the default per-user…

---

## [How to force NSIS installer to pack files from a debug configuration?](https://discourse.cmake.org/t/how-to-force-nsis-installer-to-pack-files-from-a-debug-configuration/6975)

<div class="topic-metadata">

**Author:** [@JuhaniX](https://discourse.cmake.org/u/JuhaniX)\
**Replies:** 2\
**Last updated:** [December 4, 2022, 3:36pm UTC](https://discourse.cmake.org/t/how-to-force-nsis-installer-to-pack-files-from-a-debug-configuration/6975 "2022-12-04T15:36:17Z")

</div>

I need to make an installer with NSIS that installs debug versions of files. It seems that CPack or NSIS does not care about cmake -D Release or cmake -D Debug. It is packing always release files to an installer. This …

---

## [Add command line options to my installer (CPack + NSIS)](https://discourse.cmake.org/t/add-command-line-options-to-my-installer-cpack-nsis/6882)

<div class="topic-metadata">

**Author:** [@Lotte1990](https://discourse.cmake.org/u/Lotte1990)\
**Replies:** 3\
**Last updated:** [November 17, 2022, 2:28pm UTC](https://discourse.cmake.org/t/add-command-line-options-to-my-installer-cpack-nsis/6882 "2022-11-17T14:28:03Z")

</div>

Hello, I would like to add some command line options to my installer that I create using CPack and NSIS. Example: instead of running “myinstaller.exe”, I would like to run “myinstaller.exe --noshortcut” which then omit…

---

## [CPack+NSIS adding version/product name/product name/copyright to the "Details Tab"](https://discourse.cmake.org/t/cpack-nsis-adding-version-product-name-product-name-copyright-to-the-details-tab/6775)

<div class="topic-metadata">

**Author:** [@scottaronbloom](https://discourse.cmake.org/u/scottaronbloom)\
**Replies:** 1\
**Last updated:** [November 3, 2022, 5:07pm UTC](https://discourse.cmake.org/t/cpack-nsis-adding-version-product-name-product-name-copyright-to-the-details-tab/6775 "2022-11-03T17:07:33Z")

</div>

When using the NSIS CPack, is there any way to have it set the executable Properties? Usually you add a RC file to a home grown EXE/DLL to do this, or run rcedit after it exists. I have the version and appname etc set …

---

## [Just can't get the location of the project's source tree to CPack.](https://discourse.cmake.org/t/just-cant-get-the-location-of-the-projects-source-tree-to-cpack/6396)

<div class="topic-metadata">

**Author:** [@Lord-Kamina](https://discourse.cmake.org/u/Lord-Kamina)\
**Replies:** 3\
**Last updated:** [September 20, 2022, 11:33am UTC](https://discourse.cmake.org/t/just-cant-get-the-location-of-the-projects-source-tree-to-cpack/6396 "2022-09-20T11:33:27Z")

</div>

I’m trying to create an nsis installer via the GH Actions runners. I’ve defined some code in the INSTALL section, to copy and bundle all the libs (I’m using a shell script , rather than the built-in functionality). The…

---

## [Is there a way to disable start menu shortcuts when using the CPack NSIS generator?](https://discourse.cmake.org/t/is-there-a-way-to-disable-start-menu-shortcuts-when-using-the-cpack-nsis-generator/5006)

<div class="topic-metadata">

**Author:** [@Username404-59](https://discourse.cmake.org/u/Username404-59)\
**Replies:** 0\
**Last updated:** [February 14, 2022, 8:55pm UTC](https://discourse.cmake.org/t/is-there-a-way-to-disable-start-menu-shortcuts-when-using-the-cpack-nsis-generator/5006 "2022-02-14T20:55:25Z")

</div>

The description of CPACK\_PACKAGE\_EXECUTABLES says: Lists each of the executables and associated text label to be used to create Start Menu shortcuts. For example, setting this to the list ccmake;CMake will create a sho…

---

## [Install to $COMMONFILES with nsis](https://discourse.cmake.org/t/install-to-commonfiles-with-nsis/4802)

<div class="topic-metadata">

**Author:** [@abique](https://discourse.cmake.org/u/abique)\
**Replies:** 2\
**Last updated:** [January 17, 2022, 9:07am UTC](https://discourse.cmake.org/t/install-to-commonfiles-with-nsis/4802 "2022-01-17T09:07:45Z")

</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.
