Ordres per instal·lar Notepad3 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 Rizonesoft.Notepad3 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Rizonesoft.Notepad3 -e --silentwinget uninstall --id Rizonesoft.Notepad3 -e --silentPer instal·lador
64 bits · EXE (Inno Setup) · Tots els usuaris
Instal·lació silenciosa
Notepad3_7.26.602.1_x64_Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
Notepad3_7.26.602.1_x64_Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\notepad3"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Notepad3_is1
32 bits · EXE (Inno Setup) · Tots els usuaris
Instal·lació silenciosa
Notepad3_7.26.602.1_x86_Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
Notepad3_7.26.602.1_x86_Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\notepad3"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Notepad3_is1
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-notepad3.ps1
$url = 'https://github.com/rizonesoft/Notepad3/releases/download/RELEASE_7.26.602.1/Notepad3_7.26.602.1_x64_Setup.exe'
$sha256 = '9CF68B38BCC1AA679050B9069174AB222383BA004C37BDD47056CAFC71626BE9'
$file = Join-Path $env:TEMP 'Notepad3_7.26.602.1_x64_Setup.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-notepad3.ps1
$url = 'https://github.com/rizonesoft/Notepad3/releases/download/RELEASE_7.26.602.1/Notepad3_7.26.602.1_x86_Setup.exe'
$sha256 = '42375FD4F4801FF0F2999FBC6D56848E0466A96ED89C1C1BE8AF0051AC875D0D'
$file = Join-Path $env:TEMP 'Notepad3_7.26.602.1_x86_Setup.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