Commands for installing 纳米Work桌面版 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 360.NamiWork -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id 360.NamiWork -e --silentwinget uninstall --id 360.NamiWork -e --silentBy installer
64-bit · EXE (NSIS) · Current user
Silent install
Namiwork_3.30.0.exe /SCustom folder
Namiwork_3.30.0.exe /S /D=C:\Apps\work- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Namiwork
- Install folder
- %AppData%\Namiwork
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-work.ps1
$url = 'https://work.n.cn/pkg/win/Namiwork_3.30.0.exe'
$sha256 = 'C5977AD50F2D538E691DBA7946A04FE83E51A4CDD6E68591C4C42BB93466FFD7'
$file = Join-Path $env:TEMP 'Namiwork_3.30.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