Commands for installing Commitlint 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 Commitlint.Commitlint -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Commitlint.Commitlint -e --silentwinget uninstall --id Commitlint.Commitlint -e --silentBy installer
32-bit · MSI · All users · en-US
Silent install
msiexec /i commitlint_installer.msi /qn /norestartWrite a log
msiexec /i commitlint_installer.msi /qn /norestart /l*v "%TEMP%\commitlint-install.log"Uninstall
msiexec /x {59E8B656-F64C-42BD-BD7E-2D15A421F27E} /qn /norestart- MSI product code
- {59E8B656-F64C-42BD-BD7E-2D15A421F27E}
- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{59E8B656-F64C-42BD-BD7E-2D15A421F27E}
- UpgradeCode
- {6C4AC2F5-2437-4707-BCCD-B4B739A26295}
- Install folder
- %ProgramFiles(x86)%/Commitlint
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-commitlint.ps1
$url = 'https://github.com/jurienhamaker/commitlint/releases/download/v1.9.0/commitlint_installer.msi'
$sha256 = '30146B0410A2AD916E06B25EFC65CB99755B2BB756C599BBCD797061A63B8D31'
$file = Join-Path $env:TEMP 'commitlint_installer.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