# CMake Silent Install with Options Help

**URL:** https://discourse.cmake.org/t/cmake-silent-install-with-options-help/1475
**Category:** Usage
**Created:** [July 1, 2020, 8:41pm UTC](https://discourse.cmake.org/t/cmake-silent-install-with-options-help/1475 "2020-07-01T20:41:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Fleischmann\_US\_Josep](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/f/51bf81/32.png) [@Fleischmann\_US\_Josep](https://discourse.cmake.org/u/Fleischmann_US_Josep)
#### Post date: [July 1, 2020, 8:41pm UTC](https://discourse.cmake.org/t/cmake-silent-install-with-options-help/1475/1 "2020-07-01T20:41:10Z")

</div>

Hi,

I am trying to find the right command line to enter for silently installing CMake 3.15.5 while also having it autoselect the radio button “Add CMake to the system PATH for all users”. Everything I’ve tried so far results in the program installing in either the C: root directory or Program Files folder, but no entry made to the system PATH.

For example: msiexec /i \<cmake.msi path\> ALLUSERS=1 /qn installs the program but not the PATH system variable.

Thank you.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [November 11, 2020, 2:58pm UTC](https://discourse.cmake.org/t/cmake-silent-install-with-options-help/1475/2 "2020-11-11T14:58:28Z")

</div>

I don’t know if CPack exposes mechanisms for such things. Maybe there’s a variable you can pass though?

Cc: @brad.king

---

<div class="post-metadata">

### Author: ![brad.king](https://discourse.cmake.org/user_avatar/discourse.cmake.org/brad.king/32/11_2.png) [@brad.king](https://discourse.cmake.org/u/brad.king)
#### Post date: [November 11, 2020, 3:18pm UTC](https://discourse.cmake.org/t/cmake-silent-install-with-options-help/1475/3 "2020-11-11T15:18:30Z")

</div>

The CMake `.msi` package is produced by the configuration [here](https://gitlab.kitware.com/cmake/cmake/-/tree/v3.18.4/Utilities/Release/WiX) with WiX.

---

<div class="post-metadata">

### Author: ![Francesco\_Pretto](https://discourse.cmake.org/user_avatar/discourse.cmake.org/francesco_pretto/32/1902_2.png) [@Francesco\_Pretto](https://discourse.cmake.org/u/Francesco_Pretto)
#### Post date: [October 2, 2023, 2:10pm UTC](https://discourse.cmake.org/t/cmake-silent-install-with-options-help/1475/4 "2023-10-02T14:10:14Z")

</div>

This worked for me:

```auto
msiexec /i cmake-x.y.z-windows-x86_64.msi ALLUSERS=1 ADD_CMAKE_TO_PATH=System /qn

```
