Ordres per instal·lar LLVM 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 LLVM.LLVM -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id LLVM.LLVM -e --silentwinget uninstall --id LLVM.LLVM -e --silentPer instal·lador
64 bits · MSI
Instal·lació silenciosa
msiexec /i LLVM-23.1.4-win64.msi /qn /norestartDesar un registre
msiexec /i LLVM-23.1.4-win64.msi /qn /norestart /l*v "%TEMP%\llvm-install.log"Desinstal·lar
msiexec /x {C261B515-7573-457D-AA83-FE1826A77ECE} /qn /norestart- Codi de producte MSI
- {C261B515-7573-457D-AA83-FE1826A77ECE}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{C261B515-7573-457D-AA83-FE1826A77ECE}
- UpgradeCode
- {B08613CD-8BD0-4FB6-8937-621936604DE3}
ARM64 · MSI
Instal·lació silenciosa
msiexec /i LLVM-23.1.4-woa64.msi /qn /norestartDesar un registre
msiexec /i LLVM-23.1.4-woa64.msi /qn /norestart /l*v "%TEMP%\llvm-install.log"Desinstal·lar
msiexec /x {5CD24E02-3295-4905-8F23-4C745E943988} /qn /norestart- Codi de producte MSI
- {5CD24E02-3295-4905-8F23-4C745E943988}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{5CD24E02-3295-4905-8F23-4C745E943988}
- UpgradeCode
- {B08613CD-8BD0-4FB6-8937-621936604DE3}
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-llvm.ps1
$url = 'https://github.com/llvm/llvm-project/releases/download/llvmorg-23.1.4/LLVM-23.1.4-win64.msi'
$sha256 = '15E49ACA3540991A6F28A0E57BABAB67DA82155C4F73F79DD5E8666A851F9127'
$file = Join-Path $env:TEMP 'LLVM-23.1.4-win64.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-llvm.ps1
$url = 'https://github.com/llvm/llvm-project/releases/download/llvmorg-23.1.4/LLVM-23.1.4-woa64.msi'
$sha256 = 'B484F54264400F0A75B63704B1068DA8086F0B14625575F6EFEA08813109B068'
$file = Join-Path $env:TEMP 'LLVM-23.1.4-woa64.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