Ordres per instal·lar OpenOrienteering Mapper sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb winget
PowerShell
winget install --id OpenOrienteering.Mapper -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id OpenOrienteering.Mapper -e --silentwinget uninstall --id OpenOrienteering.Mapper -e --silentPer instal·lador
64 bits · EXE (NSIS)
Instal·lació silenciosa
OpenOrienteering-Mapper-0.9.6-Windows-x64.exe /SUna altra carpeta
OpenOrienteering-Mapper-0.9.6-Windows-x64.exe /S /D=C:\Apps\openorienteering-mapper32 bits · EXE (NSIS) · Tots els usuaris
Instal·lació silenciosa
OpenOrienteering-Mapper-0.9.6-Windows-x86.exe /SUna altra carpeta
OpenOrienteering-Mapper-0.9.6-Windows-x86.exe /S /D=C:\Apps\openorienteering-mapperPowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-openorienteering-mapper.ps1
$url = 'https://github.com/OpenOrienteering/mapper/releases/download/v0.9.6/OpenOrienteering-Mapper-0.9.6-Windows-x64.exe'
$sha256 = '95EC294133046462D0F7E6474C236813D0EAAA628A9ECD062AC50C8D1E472FE8'
$file = Join-Path $env:TEMP 'OpenOrienteering-Mapper-0.9.6-Windows-x64.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait install-openorienteering-mapper.ps1
$url = 'https://github.com/OpenOrienteering/mapper/releases/download/v0.9.6/OpenOrienteering-Mapper-0.9.6-Windows-x86.exe'
$sha256 = 'D827099C91DE37B19C682BCE3EFB413F60A4181426DAA734E9562246E67F07E9'
$file = Join-Path $env:TEMP 'OpenOrienteering-Mapper-0.9.6-Windows-x86.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait