Príkazy na inštaláciu programu Maps CLI bez otázok, na jeho odinštalovanie a na detekciu v nástrojoch na nasadzovanie. Príkaz je uvedený iba vtedy, keď je presne známy: z manifestu alebo zo zdokumentovaných parametrov technológie inštalátora.
Súvisiaci návod: Parametre tichej inštalácie: MSI, NSIS, Inno Setup · Odinštalovanie programu cez register alebo PowerShell
Cez 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 --silentPodľa inštalátora
64-bit · MSI · en-US
Tichá inštalácia
msiexec /i maps_cli_2.13-18.6.40-installer.msi /qn /norestartZapísať protokol
msiexec /i maps_cli_2.13-18.6.40-installer.msi /qn /norestart /l*v "%TEMP%\maps-cli-install.log"Odinštalovanie
msiexec /x {66C9F3CB-B9F0-3B9D-9B08-D252F23C7F7E} /qn /norestart- Kód produktu MSI
- {66C9F3CB-B9F0-3B9D-9B08-D252F23C7F7E}
- Kľúč odinštalovania v registri
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{66C9F3CB-B9F0-3B9D-9B08-D252F23C7F7E}
PowerShell: stiahnuť, overiť, nainštalovať
Stiahne oficiálny súbor, overí SHA256 a program nainštaluje v tichom režime.
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