Ordres per instal·lar NegPy 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 marcinz606.NegPy -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id marcinz606.NegPy -e --silentwinget uninstall --id marcinz606.NegPy -e --silentPer instal·lador
64 bits · EXE (NSIS) · Tots els usuaris · en-US
Instal·lació silenciosa
NegPy-0.66.0-Win64-Setup.exe /SUna altra carpeta
NegPy-0.66.0-Win64-Setup.exe /S /D=C:\Apps\negpyPowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-negpy.ps1
$url = 'https://github.com/marcinz606/NegPy/releases/download/0.66.0/NegPy-0.66.0-Win64-Setup.exe'
$sha256 = '1547A3355B0A5644D312A03B96D3B701A3F49D875AB04BEB857D93DACF25E447'
$file = Join-Path $env:TEMP 'NegPy-0.66.0-Win64-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 '/S' -Wait