Kommandon för att installera NetAssistant utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med winget
PowerShell
winget install --id SunJary.NetAssistant -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SunJary.NetAssistant -e --silentwinget uninstall --id SunJary.NetAssistant -e --silentPer installationsfil
64-bitars · EXE (Inno Setup) · Aktuell användare
Tyst installation
netassistant-windows-x86_64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
netassistant-windows-x86_64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\netassistant"PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-netassistant.ps1
$url = 'https://github.com/SunJary/NetAssistant/releases/download/v1.4.0/netassistant-windows-x86_64-setup.exe'
$sha256 = '505048D52C6A59F24E27B8533EF4CDA070E84E38F5779A4D25F01907E13859DB'
$file = Join-Path $env:TEMP 'netassistant-windows-x86_64-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