Les commandes pour installer SecondLoop 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 SecondLoop.SecondLoop -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SecondLoop.SecondLoop -e --silentwinget uninstall --id SecondLoop.SecondLoop -e --silentPar installateur
64 bits · MSI · en-US
Installation silencieuse
msiexec /i SecondLoop-win.msi /qn /norestartÉcrire un journal
msiexec /i SecondLoop-win.msi /qn /norestart /l*v "%TEMP%\secondloop-install.log"Désinstallation
msiexec /x {7EAB3CF4-1471-4874-8B21-EE2FAE9F973B} /qn /norestart- Code produit MSI
- {7EAB3CF4-1471-4874-8B21-EE2FAE9F973B}
- Clé de registre de désinstallation
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7EAB3CF4-1471-4874-8B21-EE2FAE9F973B}
- UpgradeCode
- {8B5A0942-79D3-4B5A-A4E5-3FB906DA63A1}
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-secondloop.ps1
$url = 'https://github.com/dale0525/SecondLoop/releases/download/v1.33.0/SecondLoop-win.msi'
$sha256 = '77898EB4AADE325E775ED3FB2388B1A8959707F93243DC9D2E2EC29F98AF76FA'
$file = Join-Path $env:TEMP 'SecondLoop-win.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