Les commandes pour installer TypeCode 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 byCrookie.TypeCode -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id byCrookie.TypeCode -e --silentwinget uninstall --id byCrookie.TypeCode -e --silentPar installateur
64 bits · MSI
Installation silencieuse
msiexec /i TypeCode.Wpf.Setup.msi /qn /norestartÉcrire un journal
msiexec /i TypeCode.Wpf.Setup.msi /qn /norestart /l*v "%TEMP%\typecode-install.log"Désinstallation
msiexec /x {C7465337-21EF-45C1-A6CC-2101884FF304} /qn /norestart- Code produit MSI
- {C7465337-21EF-45C1-A6CC-2101884FF304}
- Clé de registre de désinstallation
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{C7465337-21EF-45C1-A6CC-2101884FF304}
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-typecode.ps1
$url = 'https://github.com/byCrookie/TypeCode/releases/download/v1.1.11/TypeCode.Wpf.Setup.msi'
$sha256 = 'B413E5F0F4460A406225F1EE07D43AA71AC6148AA79F559F134960436C88F12F'
$file = Join-Path $env:TEMP 'TypeCode.Wpf.Setup.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