Commando’s om Commitlint zonder vragen te installeren, weer te verwijderen en te detecteren in uitroltools. Een commando staat er alleen als het vaststaat: uit het manifest of als gedocumenteerde standaard van de installertechniek.
Gerelateerde handleiding: Stille installatie-parameters: MSI, NSIS, Inno Setup · Programma verwijderen via register of PowerShell
Met 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 --silentPer installer
32-bits · MSI · Alle gebruikers · en-US
Stille installatie
msiexec /i commitlint_installer.msi /qn /norestartLogbestand schrijven
msiexec /i commitlint_installer.msi /qn /norestart /l*v "%TEMP%\commitlint-install.log"Verwijderen
msiexec /x {59E8B656-F64C-42BD-BD7E-2D15A421F27E} /qn /norestart- MSI-productcode
- {59E8B656-F64C-42BD-BD7E-2D15A421F27E}
- Registersleutel voor verwijderen
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{59E8B656-F64C-42BD-BD7E-2D15A421F27E}
- UpgradeCode
- {6C4AC2F5-2437-4707-BCCD-B4B739A26295}
- Installatiemap
- %ProgramFiles(x86)%/Commitlint
PowerShell: downloaden, controleren, installeren
Downloadt het officiële bestand, controleert de SHA256-hash en installeert stil.
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