Commands for installing Box Sync 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 Box.BoxSync -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Box.BoxSync -e --silentwinget uninstall --id Box.BoxSync -e --silentBy installer
64-bit · MSI · All users
Silent install
msiexec /i SyncMSI64.msi /qn /norestartWrite a log
msiexec /i SyncMSI64.msi /qn /norestart /l*v "%TEMP%\box-sync-install.log"Uninstall
msiexec /x {F05A7239-D9DD-437D-886E-1E024E83D564} /qn /norestart- MSI product code
- {F05A7239-D9DD-437D-886E-1E024E83D564}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F05A7239-D9DD-437D-886E-1E024E83D564}
- UpgradeCode
- {85BBBEAD-4933-4BC5-8008-FD0A6F8170A7}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-box-sync.ps1
$url = 'https://e3.boxcdn.net/box-installers/sync/Sync+4+External/SyncMSI64.msi'
$sha256 = 'E1264690D67BA043B6E69268EABCF140952F5804D6D3B864E2A1CD2D93964C07'
$file = Join-Path $env:TEMP 'SyncMSI64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait