Ordres per instal·lar NetGenius 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 SoftPerfect.NetGenius -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SoftPerfect.NetGenius -e --silentwinget uninstall --id SoftPerfect.NetGenius -e --silentPer instal·lador
64 bits · EXE (Inno Setup) · Tots els usuaris
Instal·lació silenciosa
netgenius_setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
netgenius_setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\netgenius"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8C0BA536-321C-4ECF-B1B0-6BBCA85CED83}_is1
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-netgenius.ps1
$url = 'https://www.softperfect.com/download/files/netgenius_setup.exe'
$sha256 = 'CF5F5ACA3B51F80075FA834BAE1269BEDF277ACB120827BD515C591232C01CDE'
$file = Join-Path $env:TEMP 'netgenius_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