Commando’s om Maps CLI 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 HERE.MAPMAKING.CLI -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id HERE.MAPMAKING.CLI -e --silentwinget uninstall --id HERE.MAPMAKING.CLI -e --silentPer installer
64-bits · MSI · en-US
Stille installatie
msiexec /i maps_cli_2.13-18.6.40-installer.msi /qn /norestartLogbestand schrijven
msiexec /i maps_cli_2.13-18.6.40-installer.msi /qn /norestart /l*v "%TEMP%\maps-cli-install.log"Verwijderen
msiexec /x {66C9F3CB-B9F0-3B9D-9B08-D252F23C7F7E} /qn /norestart- MSI-productcode
- {66C9F3CB-B9F0-3B9D-9B08-D252F23C7F7E}
- Registersleutel voor verwijderen
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{66C9F3CB-B9F0-3B9D-9B08-D252F23C7F7E}
PowerShell: downloaden, controleren, installeren
Downloadt het officiële bestand, controleert de SHA256-hash en installeert stil.
install-maps-cli.ps1
$url = 'https://github.com/heremaps/homebrew-map-making-cli/releases/download/18.6.40/maps_cli_2.13-18.6.40-installer.msi'
$sha256 = 'C59B179D98E64036B481669C5AA4A451BA2A5274CA049E5136DE117D8ED23611'
$file = Join-Path $env:TEMP 'maps_cli_2.13-18.6.40-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