I use CPack in my CMakeLists.txt to create an installer for my test application. This is my code which generates the start menu entry
set(CPACK_GENERATOR "NSIS")
set(CPACK_START_MENU_SHORTCUTS "${PROJECT_NAME}")
set(CPACK_PACKAGE_EXECUTABLES "${PROJECT_NAME}" "${PROJECT_NAME}.exe")
include(CPack)
After installation I see my start menu folder and when opening it there are my application .exe and the uninstaller. After ~15s the uninstaller disappears magically.
Has anyone a clue why this happens? The application .exe stays.