# Windows icon for Windows 11 Installed Apps and Classic Control Panel

**URL:** <https://discourse.cmake.org/t/windows-icon-for-windows-11-installed-apps-and-classic-control-panel/8949>\
**Category:** Code\
**Created:** [September 13, 2023, 9:50am UTC](https://discourse.cmake.org/t/windows-icon-for-windows-11-installed-apps-and-classic-control-panel/8949 "2023-09-13T09:50:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gonzalo\_Garramuno](https://discourse.cmake.org/user_avatar/discourse.cmake.org/gonzalo_garramuno/32/265_2.png) [@Gonzalo\_Garramuno](https://discourse.cmake.org/u/Gonzalo_Garramuno)\
**Post date:** [September 13, 2023, 9:50am UTC](https://discourse.cmake.org/t/windows-icon-for-windows-11-installed-apps-and-classic-control-panel/8949/1 "2023-09-13T09:50:37Z")

</div>

I have an icon for the shortcut and for the application window (an .ico file) which is used when minimized, added as a resource.

However, my application does not have an icon for Windows 11’s Settings-\>Installed Apps listing or its Classic Control Panel. Does anyone know how can I add one with cmake?

---

<div class="post-metadata">

**Author:** ![Gonzalo\_Garramuno](https://discourse.cmake.org/user_avatar/discourse.cmake.org/gonzalo_garramuno/32/265_2.png) [@Gonzalo\_Garramuno](https://discourse.cmake.org/u/Gonzalo_Garramuno)\
**Post date:** [September 13, 2023, 3:20pm UTC](https://discourse.cmake.org/t/windows-icon-for-windows-11-installed-apps-and-classic-control-panel/8949/2 "2023-09-13T15:20:16Z")

</div>

I am using the NSIS installer, with the following code:

```
set(CPACK_GENERATOR NSIS) # ZIP

set(CPACK_NSIS_MUI_ICON ${ROOT_DIR}/etc/Windows/mrv2.ico)
set(CPACK_NSIS_MUI_UNICON ${ROOT_DIR}/etc/Windows/mrv2.ico)

```

The icon shows in the .exe installer just fine, but not in Windows 11’s Settings-\>App-\>Installed Apps.

Is there any way (NSIS code) or requirements I need to make this work?

---

<div class="post-metadata">

**Author:** ![craig.scott](https://discourse.cmake.org/user_avatar/discourse.cmake.org/craig.scott/32/20_2.png) [@craig.scott](https://discourse.cmake.org/u/craig.scott)\
**Post date:** [September 13, 2023, 10:09pm UTC](https://discourse.cmake.org/t/windows-icon-for-windows-11-installed-apps-and-classic-control-panel/8949/3 "2023-09-13T22:09:42Z")

</div>

I think you’re missing `CPACK_NSIS_INSTALLED_ICON_NAME`. Set it to the relative path to your installed application’s executable. Eg

```cmake
set(CPACK_NSIS_INSTALLED_ICON_NAME bin/MainApp.exe)

```

---

<div class="post-metadata">

**Author:** ![Gonzalo\_Garramuno](https://discourse.cmake.org/user_avatar/discourse.cmake.org/gonzalo_garramuno/32/265_2.png) [@Gonzalo\_Garramuno](https://discourse.cmake.org/u/Gonzalo_Garramuno)\
**Post date:** [September 16, 2023, 11:57am UTC](https://discourse.cmake.org/t/windows-icon-for-windows-11-installed-apps-and-classic-control-panel/8949/4 "2023-09-16T11:57:35Z")

</div>

Thanks! I actually figured it out with the help of Bing’s ChatGPT.
