Les commandes pour installer Microsoft Small Basic sans aucune question, le désinstaller et le détecter depuis un outil de déploiement. Une commande n’apparaît que si elle est certaine : issue du manifeste ou valeur par défaut documentée de la technologie d’installation.
Guide associé: Installation silencieuse : MSI, NSIS, Inno Setup · Désinstaller un programme via le registre ou PowerShell
Avec 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 --silentPar installateur
64 bits · MSI · en-US
Installation silencieuse
msiexec /i SmallBasic_v1.2.msi /qn /norestartÉcrire un journal
msiexec /i SmallBasic_v1.2.msi /qn /norestart /l*v "%TEMP%\microsoft-small-basic-install.log"Désinstallation
msiexec /x {7AAA27E4-CDB3-49C0-AA2D-41827C001BA3} /qn /norestart- Code produit MSI
- {7AAA27E4-CDB3-49C0-AA2D-41827C001BA3}
- Clé de registre de désinstallation
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7AAA27E4-CDB3-49C0-AA2D-41827C001BA3}
PowerShell : télécharger, vérifier, installer
Télécharge le fichier officiel, vérifie son empreinte SHA256 et l’installe en mode silencieux.
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