Hello,
I have CMake 3.27 that I have installed using Qt’s installer. Now I want to installe the latest CMake 3.31. But I have the following error. Maybe someone had the same error and solved it:
Hello,
I have CMake 3.27 that I have installed using Qt’s installer. Now I want to installe the latest CMake 3.31. But I have the following error. Maybe someone had the same error and solved it:
When I click “OK” I see this message:
I don’t have CMake 3.28. I have 3.27.7 installed but like a part of Qt:
I don’t want to uninstall 3.27. I want to install 3.31 to another folder but when I run the cmake-3.31.0-rc3-windows-x86_64.msi
I have the error above.
I’ve tried to delete the old 3.27.7 path from the PATH and to click on the Browse
button here and select msi:
When I click OK
I see this message:
I don’t have another version of CMake (only like a part of Qt):
I’ve tried cmake-3.30.5-windows-x86_64.msi
but I see the same result. It says Try to find the installation package 'cmake-3.28.1-windows-x86_64.msi' in the folder from which you can install CMake
. I’ve tried to install cmake-3.28.1-windows-x86_64.msi
and it was installed without problems:
@brad.king Any chance this is related to the CMP0172 policy introduced in CMake 3.31? I think CMake uses its own custom MSI input file rather than one produced by CPack, but worth asking the question.
@8Observer8 Could you please try installing CMake 3.30.5 and see if that gives the same error? Make sure you grab the official MSI package from Kitware (https://cmake.org/download/).
Yes, the same error. It says: Try to find the installation package 'cmake-3.28.1-windows-x86_64.msi' in the folder from which you can install CMake
. After this I’ve tried to install cmake-3.28.1-windows-x86_64.msi and it was installed without problems.
After you install CMake 3.28.1, could you then try to manually uninstall it before trying to install a newer CMake version?
I’m wondering here if there’s a stray registry value that is being left set somehow. Not sure I can offer much guidance on what that might be, it may take trawling through CMake’s packaging scripts to work that out. The relevant parts are likely to be in the files here.
Thank you very much! The problem was solved. I’ve uninstalled CMake 3.28.1 using Unistall Tool
with clearing the registry:
The 3.31.0 version was installed without problems using the cmake-3.31.0-rc3-windows-x86_64.msi
installer:
>cmake --version
cmake version 3.31.0-rc3