Les commandes pour installer XmlNotepad 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.XMLNotepad -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.XMLNotepad -e --silentwinget uninstall --id Microsoft.XMLNotepad -e --silentPar installateur
32 bits · ZIP · Tous les utilisateurs · en-US
Installation silencieuse
msiexec /i XmlNotepadSetup.zip /qn /norestartDésinstallation
msiexec /x {9D7351B1-6676-48C4-876D-CE5836AC92FA} /qn /norestart- Code produit MSI
- {9D7351B1-6676-48C4-876D-CE5836AC92FA}
- Clé de registre de désinstallation
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{9D7351B1-6676-48C4-876D-CE5836AC92FA}
- UpgradeCode
- {14C1B5E8-3198-4AF2-B4BC-351017A109D3}
- Dossier d’installation
- %ProgramFiles(x86)%/LovettSoftware/XmlNotepad
Tous processeurs · MSIX
Installation silencieuse
Add-AppxPackage -Path XmlNotepadPackage_2.9.0.25_AnyCPU.msixbundleDésinstallation
Get-AppxPackage -Name 43906ChrisLovett.XmlNotepad | Remove-AppxPackage- Dossier d’installation
- %ProgramFiles%/WindowsApps/43906ChrisLovett.XmlNotepad_2.9.0.25_neutral__hndwmj480pefj
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-xmlnotepad.ps1
$url = 'https://github.com/microsoft/XmlNotepad/releases/download/2.9.0.25/XmlNotepadSetup.zip'
$sha256 = '20E3E325E84050526E74022AD79305CB0F93ED54CAC0405F55104D32A7375A07'
$file = Join-Path $env:TEMP 'XmlNotepadSetup.zip'
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 install-xmlnotepad.ps1
$url = 'https://github.com/microsoft/XmlNotepad/releases/download/2.9.0.25/XmlNotepadPackage_2.9.0.25_AnyCPU.msixbundle'
$sha256 = '37AAF8224CF0DA7880A09FDE7D258BCE901558DF9403C05C469290D7ABE3FE1E'
$file = Join-Path $env:TEMP 'XmlNotepadPackage_2.9.0.25_AnyCPU.msixbundle'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file