Kommandon för att installera Bugs 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 NHNBugs.Bugs -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id NHNBugs.Bugs -e --silentwinget uninstall --id NHNBugs.Bugs -e --silentPer installationsfil
32-bitars · EXE (NSIS)
Tyst installation
BugsSetup.exe /SEgen mapp
BugsSetup.exe /S /D=C:\Apps\bugsPowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-bugs.ps1
$url = 'https://dl.bugsm.co.kr/BugsPlayer4/BugsSetup.exe'
$sha256 = '550FC8D112C8FA7D22937CBC086212CDF2E16E84CBA355210EFBDA450EE6196B'
$file = Join-Path $env:TEMP 'BugsSetup.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