Ordres per instal·lar Perch 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 EagleSpirit.Perch -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id EagleSpirit.Perch -e --silentwinget uninstall --id EagleSpirit.Perch -e --silentPer instal·lador
64 bits · EXE (Inno Setup) · Tots els usuaris · en-US
Instal·lació silenciosa
Perch-0.4.0-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
Perch-0.4.0-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\perch"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8E4B1C22-7F3A-4B6E-9C1D-2A5F0E7D3B91}_is1
- Carpeta d’instal·lació
- %ProgramFiles%\Perch
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-perch.ps1
$url = 'https://github.com/eaglespirittech/perch/releases/download/v0.4.0/Perch-0.4.0-setup.exe'
$sha256 = '063D56E20B2F8C469A5F291F77640B2B4A897159A23A978D0274C4CE464100B8'
$file = Join-Path $env:TEMP 'Perch-0.4.0-setup.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait