Ordres per instal·lar freerouting 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
Per instal·lador
64 bits · MSI
Instal·lació silenciosa
msiexec /i freerouting-2.6.0-windows-x64.msi /qn /norestartDesar un registre
msiexec /i freerouting-2.6.0-windows-x64.msi /qn /norestart /l*v "%TEMP%\freerouting-install.log"PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-freerouting.ps1
$url = 'https://github.com/freerouting/freerouting/releases/download/v2.6.0/freerouting-2.6.0-windows-x64.msi'
$sha256 = '90C17BD4FC961A286A9C05B6AF5B67E6E44380C09FA959D7E90416540EC7F2E4'
$file = Join-Path $env:TEMP 'freerouting-2.6.0-windows-x64.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