随机
Enter 搜索 ↑↓ 切换 Esc 清空

win-install-discord

命令

Windows 安装 Discord

补充说明

Discord 是一款专为游戏社区和团队协作设计的即时通讯平台,支持语音通话、视频会议、频道管理和丰富的机器人生态。

安装 Discord

  • CMD 下载命令
# 安装 Discord
cd /d "%USERPROFILE%\Downloads" && curl.exe -L -o DiscordSetup.exe https://discord.com/api/download?platform=win && DiscordSetup.exe /S
  • PowerShell 下载命令
# 安装 Discord
cd ~\Downloads; curl.exe -L -o DiscordSetup.exe "https://discord.com/api/download?platform=win"; .\DiscordSetup.exe /S

winget 安装命令

推荐使用 winget 安装,自动处理依赖、静默后台执行

winget install -e --id Discord.Discord -h --accept-package-agreements --accept-source-agreements
  • -e:精确匹配包 ID,杜绝装错
  • -h:静默安装,不弹出向导窗口
  • --accept-package-agreements:自动同意许可协议
  • --accept-source-agreements:同意源协议,批量部署必备

使用前提

  • 系统:Windows 11 / 10 1709+(自带 winget)
  • 权限:以管理员身份运行 CMD,否则 UAC 中断自动化
  • 网络:需正常联网

执行结果

  • 未安装 → 自动下载 + 静默安装,无弹窗
  • 已装同版本 → 提示已安装,不重复操作
  • 已有旧版 → 不会自动升级,如需升级请运行 winget upgrade Discord.Discord
目录