Commands for installing BAS21 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 Cencit.BAS21 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Cencit.BAS21 -e --silentwinget uninstall --id Cencit.BAS21 -e --silentBy installer
64-bit · MSI · All users · en-US
Silent install
msiexec /i BAS21-1.7.5-x64.msi /qn /norestartWrite a log
msiexec /i BAS21-1.7.5-x64.msi /qn /norestart /l*v "%TEMP%\bas21-install.log"Uninstall
msiexec /x {FBFDCB1A-AC4F-4379-8518-266B4E60B12A} /qn /norestart- MSI product code
- {FBFDCB1A-AC4F-4379-8518-266B4E60B12A}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{FBFDCB1A-AC4F-4379-8518-266B4E60B12A}
- UpgradeCode
- {F9612763-0750-48DF-8820-AC15A47FD3BF}
- Install folder
- %ProgramFiles%\BAS21
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-bas21.ps1
$url = 'https://download.bas21.no/bas21/BAS21-1.7.5-x64.msi'
$sha256 = 'A5948C990C7572D661EF841F4F717BA0B31D3B21C78A5B29667B66F4D26BE040'
$file = Join-Path $env:TEMP 'BAS21-1.7.5-x64.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