Ordres per instal·lar CMake sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb winget
PowerShell
winget install --id Kitware.CMake -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Kitware.CMake -e --silentwinget uninstall --id Kitware.CMake -e --silentPer instal·lador
64 bits · MSI · Tots els usuaris · en-US
Instal·lació silenciosa
msiexec /i cmake-4.4.4-windows-x86_64.msi /qn /norestartDesar un registre
msiexec /i cmake-4.4.4-windows-x86_64.msi /qn /norestart /l*v "%TEMP%\cmake-install.log"Desinstal·lar
msiexec /x {0DEA00BE-9AC0-4348-839D-8EFDCCBD3205} /qn /norestart- Codi de producte MSI
- {0DEA00BE-9AC0-4348-839D-8EFDCCBD3205}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{0DEA00BE-9AC0-4348-839D-8EFDCCBD3205}
- UpgradeCode
- {8FFD1D72-B7F1-11E2-8EE5-00238BCA4991}
- Carpeta d’instal·lació
- %ProgramFiles%/./CMake
64 bits · ZIP
No cal instal·lar-lo (portable)
ARM64 · MSI · Tots els usuaris · en-US
Instal·lació silenciosa
msiexec /i cmake-4.4.4-windows-arm64.msi /qn /norestartDesar un registre
msiexec /i cmake-4.4.4-windows-arm64.msi /qn /norestart /l*v "%TEMP%\cmake-install.log"Desinstal·lar
msiexec /x {27A3BDFF-6499-4C43-AC9E-9166AF452743} /qn /norestart- Codi de producte MSI
- {27A3BDFF-6499-4C43-AC9E-9166AF452743}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{27A3BDFF-6499-4C43-AC9E-9166AF452743}
- UpgradeCode
- {8FFD1D72-B7F1-11E2-8EE5-00238BCA4991}
- Carpeta d’instal·lació
- %ProgramFiles%/./CMake
ARM64 · ZIP
No cal instal·lar-lo (portable)
32 bits · MSI · Tots els usuaris · en-US
Instal·lació silenciosa
msiexec /i cmake-4.4.4-windows-i386.msi /qn /norestartDesar un registre
msiexec /i cmake-4.4.4-windows-i386.msi /qn /norestart /l*v "%TEMP%\cmake-install.log"Desinstal·lar
msiexec /x {CB23E09B-5373-47E0-9883-510564DD5603} /qn /norestart- Codi de producte MSI
- {CB23E09B-5373-47E0-9883-510564DD5603}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{CB23E09B-5373-47E0-9883-510564DD5603}
- UpgradeCode
- {8FFD1D72-B7F1-11E2-8EE5-00238BCA4991}
- Carpeta d’instal·lació
- %ProgramFiles(x86)%/./CMake
32 bits · ZIP
No cal instal·lar-lo (portable)
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-cmake.ps1
$url = 'https://github.com/Kitware/CMake/releases/download/v4.4.4/cmake-4.4.4-windows-x86_64.msi'
$sha256 = 'F7AAC962E8EEA82C0A1C603BB11EE3514806A43A35147D5B1E9D69926FFD7D7E'
$file = Join-Path $env:TEMP 'cmake-4.4.4-windows-x86_64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-cmake.ps1
$url = 'https://github.com/Kitware/CMake/releases/download/v4.4.4/cmake-4.4.4-windows-arm64.msi'
$sha256 = 'FA7B42F30E0F941F253A6501D9421ECB7656AC311A74975E0A11CAC73067C487'
$file = Join-Path $env:TEMP 'cmake-4.4.4-windows-arm64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-cmake.ps1
$url = 'https://github.com/Kitware/CMake/releases/download/v4.4.4/cmake-4.4.4-windows-i386.msi'
$sha256 = '024A2AFBC59A145081E3C68FA8C916FC130DE30E8782F5B897E05946182C1199'
$file = Join-Path $env:TEMP 'cmake-4.4.4-windows-i386.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait