Les commandes pour installer SimpleCalcWithPython 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 MukunthP.R.SimpleCalcWithPython -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id MukunthP.R.SimpleCalcWithPython -e --silentwinget uninstall --id MukunthP.R.SimpleCalcWithPython -e --silentPar installateur
64 bits · EXE (Inno Setup)
Installation silencieuse
SimpleCalcSetup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Dossier personnalisé
SimpleCalcSetup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\simplecalcwithpython"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-simplecalcwithpython.ps1
$url = 'https://github.com/all-topics/GUI-calculator/releases/download/v1.0.0/SimpleCalcSetup.exe'
$sha256 = 'DF5235A821B81EB55E62A2FD4977D8233748C8FE925CEF35DA11AAD126E1D504'
$file = Join-Path $env:TEMP 'SimpleCalcSetup.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait