CPack/NSIS: generated package fails when uninstalling old package (#23001) · Issues · CMake / CMake
I've noticed on a new(ish) development machine that packages I generate fail when trying to uninstall old versions of themselves (ie. CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL). You can however uninstall them manually...