Les commandes pour installer func-e 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 Tetrate.func-e -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Tetrate.func-e -e --silentwinget uninstall --id Tetrate.func-e -e --silentPar installateur
64 bits · MSI · en-US
Installation silencieuse
msiexec /i func-e_1.1.4_windows_amd64.msi /qn /norestartÉcrire un journal
msiexec /i func-e_1.1.4_windows_amd64.msi /qn /norestart /l*v "%TEMP%\func-e-install.log"Désinstallation
msiexec /x {04EBEFF2-13A8-498C-9958-30F07D7F2F22} /qn /norestart- Code produit MSI
- {04EBEFF2-13A8-498C-9958-30F07D7F2F22}
- Clé de registre de désinstallation
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{04EBEFF2-13A8-498C-9958-30F07D7F2F22}
- UpgradeCode
- {FC6C326B-1DB7-4D48-8F05-E13E79DF4D0E}
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-func-e.ps1
$url = 'https://github.com/tetratelabs/func-e/releases/download/v1.1.4/func-e_1.1.4_windows_amd64.msi'
$sha256 = '9F72C6DFC37FB22FE3E39A6312EAC350F2527FE8006493CD16E5CFB7D48EDDD5'
$file = Join-Path $env:TEMP 'func-e_1.1.4_windows_amd64.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