Commands for installing Win顺 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 LingCore.WinShun -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id LingCore.WinShun -e --silentwinget uninstall --id LingCore.WinShun -e --silentBy installer
64-bit · EXE (Inno Setup) · All users
Silent install
WinShun-0.63.0-x64-offline-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
WinShun-0.63.0-x64-offline-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\win"- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{C582F95C-EAF2-4AF2-961D-E35C4506652A}_is1
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-win.ps1
$url = 'https://github.com/LingCore/WinShun/releases/download/v0.63.0/WinShun-0.63.0-x64-offline-setup.exe'
$sha256 = '46FFF9D84D7D7545C91B325D134B4045E07A74E9C03AFF6EC97C48405C2AEBDD'
$file = Join-Path $env:TEMP 'WinShun-0.63.0-x64-offline-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