Commands for installing 在线 DOS 游戏 without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id rwv.OnlineDOSGames -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id rwv.OnlineDOSGames -e --silentwinget uninstall --id rwv.OnlineDOSGames -e --silentBy installer
64-bit · EXE (NSIS) · Current user
Silent install
"在线 DOS 游戏 Setup 8.2.0.exe" /SCustom folder
"在线 DOS 游戏 Setup 8.2.0.exe" /S /D=C:\Apps\dos- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\74a17516-c040-5c8e-a93f-95bf0c3060c2
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-dos.ps1
$url = 'https://b2.zczc.men/file/dos-electron-assets/release/在线%20DOS%20游戏%20Setup%208.2.0.exe'
$sha256 = '54E207D05752F9FCFCD58621B39C8533559FE4608210E5B0046754F97182B0D7'
$file = Join-Path $env:TEMP '在线 DOS 游戏 Setup 8.2.0.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