用于免交互安装Interview Coder、卸载以及在部署工具中检测安装状态的命令。只列出确定可用的命令:来自清单文件,或来自安装程序技术的官方默认参数。
相关教程: 静默安装参数大全:MSI、NSIS、Inno Setup · 用注册表或PowerShell卸载程序
使用winget
PowerShell
winget install --id ibttf.InterviewCoder -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ibttf.InterviewCoder -e --silentwinget uninstall --id ibttf.InterviewCoder -e --silent按安装包
64位 · EXE(NSIS) · en-US
静默安装
Interview.Coder-Windows-1.0.33.exe /S自定义安装目录
Interview.Coder-Windows-1.0.33.exe /S /D=C:\Apps\interview-coder- 卸载注册表项
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\700de121-a5fb-5e0e-b649-eff11beb0df9
PowerShell:下载、校验、安装
下载官方文件,校验SHA256后静默安装。
install-interview-coder.ps1
$url = 'https://github.com/ibttf/interview-coder/releases/download/v1.0.33/Interview.Coder-Windows-1.0.33.exe'
$sha256 = '1416121EB552EFCD4594FD915486335D0A2AA6509455304C4C1548E49E48C57A'
$file = Join-Path $env:TEMP 'Interview.Coder-Windows-1.0.33.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