Ordres per instal·lar SkyNotepad sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb winget
PowerShell
winget install --id AlperAkca79.SkyNotepad -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id AlperAkca79.SkyNotepad -e --silentwinget uninstall --id AlperAkca79.SkyNotepad -e --silentPer instal·lador
32 bits · MSIX
Instal·lació silenciosa
Add-AppxPackage -Path AlperAkca79.SkyNotepad_0.12.0.0_cp7832jw38n0r.msixbundleDesinstal·lar
Get-AppxPackage -Name 41411AlperAkca79.704697DF414B | Remove-AppxPackagePowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-skynotepad.ps1
$url = 'https://github.com/lnxwizard/SkyNotepad/releases/download/0.12.0.0/AlperAkca79.SkyNotepad_0.12.0.0_cp7832jw38n0r.msixbundle'
$sha256 = 'D975552E43E104FFEA09E842E28203652637148D9F62362CC0DEC1A15B926D8C'
$file = Join-Path $env:TEMP 'AlperAkca79.SkyNotepad_0.12.0.0_cp7832jw38n0r.msixbundle'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file