Ordres per instal·lar pyRevit 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
winget install --id pyRevit.pyRevit -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id pyRevit.pyRevit -e --silentwinget uninstall --id pyRevit.pyRevit -e --silentPer instal·lador
64 bits · EXE (Inno Setup) · Tots els usuaris
pyRevit_7.0.0.26278_admin_signed.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-pyRevit_7.0.0.26278_admin_signed.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\pyrevit"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\f2a3da53-6f34-41d5-abbd-389ffa7f4d5f_is1
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
$url = 'https://github.com/pyrevitlabs/pyRevit/releases/download/v7.0.0.26278+2233/pyRevit_7.0.0.26278_admin_signed.exe'
$sha256 = 'F7C42EB88785146334181013C56D6B80F7FCC734CF26FBA37AA283063B22045A'
$file = Join-Path $env:TEMP 'pyRevit_7.0.0.26278_admin_signed.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