Les commandes pour installer Programmer's Notepad 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
winget install --id SimonSteele.ProgrammersNotepad -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SimonSteele.ProgrammersNotepad -e --silentwinget uninstall --id SimonSteele.ProgrammersNotepad -e --silentPar installateur
32 bits · EXE (Inno Setup)
pn2421440_multilang.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-pn2421440_multilang.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\programmers-notepad"- Clé de registre de désinstallation
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{52CF142B-7B0E-41E7-98F5-B834122523E7}_is1
32 bits · ZIP
Aucune installation nécessaire (portable)
PowerShell : télécharger, vérifier, installer
Télécharge le fichier officiel, vérifie son empreinte SHA256 et l’installe en mode silencieux.
$url = 'https://github.com/simonsteele/pn/releases/download/v2.4.2/pn2421440_multilang.exe'
$sha256 = 'F71DEB2C89C6AA622C8E47C024DD0D3805C677D4B98DC270EB5085FAE5925F06'
$file = Join-Path $env:TEMP 'pn2421440_multilang.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