# Trying to install CMake on windows and need to be admin

**URL:** https://discourse.cmake.org/t/trying-to-install-cmake-on-windows-and-need-to-be-admin/1741
**Category:** Usage
**Created:** [August 24, 2020, 11:53am UTC](https://discourse.cmake.org/t/trying-to-install-cmake-on-windows-and-need-to-be-admin/1741 "2020-08-24T11:53:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Jav\_Oper](https://discourse.cmake.org/user_avatar/discourse.cmake.org/jav_oper/32/798_2.png) [@Jav\_Oper](https://discourse.cmake.org/u/Jav_Oper)
#### Post date: [August 24, 2020, 11:53am UTC](https://discourse.cmake.org/t/trying-to-install-cmake-on-windows-and-need-to-be-admin/1741/1 "2020-08-24T11:53:52Z")

</div>

I am trying to install CMake 3.18.1 on Windows 10 through Msys. i have bootstraped i have run make but when i try make install i get the error when installation starts(after it has built everything), that it cant create a path and its probably due to lack of being sudo. Sudo cant get executed on Msys so how can i overcome this?

---

<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: [August 26, 2020, 6:54pm UTC](https://discourse.cmake.org/t/trying-to-install-cmake-on-windows-and-need-to-be-admin/1741/2 "2020-08-26T18:54:14Z")

</div>

I think you can use the `--prefix` argument of the `bootstrap` script to specify where you want CMake to be installed.

I hope this helps.
