Commands for installing Microsoft Small Basic 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 Microsoft.SmallBasic -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.SmallBasic -e --silentwinget uninstall --id Microsoft.SmallBasic -e --silentBy installer
64-bit · MSI · en-US
Silent install
msiexec /i SmallBasic_v1.2.msi /qn /norestartWrite a log
msiexec /i SmallBasic_v1.2.msi /qn /norestart /l*v "%TEMP%\microsoft-small-basic-install.log"Uninstall
msiexec /x {7AAA27E4-CDB3-49C0-AA2D-41827C001BA3} /qn /norestart- MSI product code
- {7AAA27E4-CDB3-49C0-AA2D-41827C001BA3}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7AAA27E4-CDB3-49C0-AA2D-41827C001BA3}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-microsoft-small-basic.ps1
$url = 'https://smallbasic-publicwebsite.azurewebsites.net/assets/SmallBasic_v1.2.msi'
$sha256 = 'BB4135C1150128C1324AB8DE277278560445E14A00AA1B72CE948696826B8E64'
$file = Join-Path $env:TEMP 'SmallBasic_v1.2.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