Commands for installing LLVM without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With 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 --silentBy installer
64-bit · MSI
Silent install
msiexec /i LLVM-23.1.5-win64.msi /qn /norestartWrite a log
msiexec /i LLVM-23.1.5-win64.msi /qn /norestart /l*v "%TEMP%\llvm-install.log"Uninstall
msiexec /x {5B1F1A5F-3452-407F-B9AB-32FE05828D46} /qn /norestart- MSI product code
- {5B1F1A5F-3452-407F-B9AB-32FE05828D46}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{5B1F1A5F-3452-407F-B9AB-32FE05828D46}
- UpgradeCode
- {B08613CD-8BD0-4FB6-8937-621936604DE3}
ARM64 · MSI
Silent install
msiexec /i LLVM-23.1.5-woa64.msi /qn /norestartWrite a log
msiexec /i LLVM-23.1.5-woa64.msi /qn /norestart /l*v "%TEMP%\llvm-install.log"Uninstall
msiexec /x {B8FE81E0-4814-4158-AB21-FCF285788188} /qn /norestart- MSI product code
- {B8FE81E0-4814-4158-AB21-FCF285788188}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B8FE81E0-4814-4158-AB21-FCF285788188}
- UpgradeCode
- {B08613CD-8BD0-4FB6-8937-621936604DE3}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-llvm.ps1
$url = 'https://github.com/llvm/llvm-project/releases/download/llvmorg-23.1.5/LLVM-23.1.5-win64.msi'
$sha256 = '288AB326377157A9E02E6FB9724914CC2B55963882D493A405F31DC66E837C12'
$file = Join-Path $env:TEMP 'LLVM-23.1.5-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.5/LLVM-23.1.5-woa64.msi'
$sha256 = '0E8A80E8C8A9A17958E65EC706B62FD07B172792BCCFED54A32006E1823A79B7'
$file = Join-Path $env:TEMP 'LLVM-23.1.5-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