Ordres per instal·lar QTextPad 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 QTextPad.QTextPad -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id QTextPad.QTextPad -e --silentwinget uninstall --id QTextPad.QTextPad -e --silentPer instal·lador
64 bits · EXE (Inno Setup) · Tots els usuaris
Instal·lació silenciosa
qtextpad-win64-1.12.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
qtextpad-win64-1.12.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\qtextpad"ARM64 · EXE (Inno Setup) · Tots els usuaris
Instal·lació silenciosa
qtextpad-arm64-1.12.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
qtextpad-arm64-1.12.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\qtextpad"PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-qtextpad.ps1
$url = 'https://github.com/zrax/qtextpad/releases/download/1.12/qtextpad-win64-1.12.exe'
$sha256 = 'E78CB972959044C09424291266FA37897E7BE236C5F076C7DBC792569774FFB2'
$file = Join-Path $env:TEMP 'qtextpad-win64-1.12.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 install-qtextpad.ps1
$url = 'https://github.com/zrax/qtextpad/releases/download/1.12/qtextpad-arm64-1.12.exe'
$sha256 = 'F7BCF2E1ED231CD56AD72DF66A32747EA6322E00C01D56C92EE2F235CD3C687D'
$file = Join-Path $env:TEMP 'qtextpad-arm64-1.12.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