Příkazy pro instalaci programu NAPS2 bez dotazů, jeho odinstalaci a detekci v nástrojích pro nasazení. Příkaz je uveden jen tehdy, když je přesně známý: z manifestu nebo ze zdokumentovaných parametrů technologie instalátoru.
Související návod: Parametry tiché instalace: MSI, NSIS, Inno Setup · Odinstalace programu přes registr nebo PowerShell
Přes winget
PowerShell
winget install --id Cyanfish.NAPS2 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Cyanfish.NAPS2 -e --silentwinget uninstall --id Cyanfish.NAPS2 -e --silentPodle instalátoru
64bit · EXE (Inno Setup) · Všichni uživatelé
Tichá instalace
naps2-8.6.1-win-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Vlastní složka
naps2-8.6.1-win-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\naps2"- Klíč odinstalace v registru
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\NAPS2 - Not Another PDF Scanner_is1
- Instalační složka
- %ProgramFiles%\NAPS2
64bit · MSIX
Tichá instalace
Add-AppxPackage -Path naps2-8.6.1-win-x64.msixOdinstalace
Get-AppxPackage -Name NAPS2Software.NAPS2-NotAnotherPDFScanner | Remove-AppxPackage64bit · MSI · Všichni uživatelé
Tichá instalace
msiexec /i naps2-8.6.1-win-x64.msi /qn /norestartZapsat protokol
msiexec /i naps2-8.6.1-win-x64.msi /qn /norestart /l*v "%TEMP%\naps2-install.log"Odinstalace
msiexec /x {30145F95-2A07-4839-9996-0D20799E2F15} /qn /norestart- Kód produktu MSI
- {30145F95-2A07-4839-9996-0D20799E2F15}
- Klíč odinstalace v registru
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{30145F95-2A07-4839-9996-0D20799E2F15}
- UpgradeCode
- {FEB82971-B3E6-4F19-9684-1D543E644D73}
- Instalační složka
- %ProgramFiles%\NAPS2
ARM64 · EXE (Inno Setup) · Všichni uživatelé
Tichá instalace
naps2-8.6.1-win-arm64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Vlastní složka
naps2-8.6.1-win-arm64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\naps2"- Klíč odinstalace v registru
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\NAPS2 - Not Another PDF Scanner_is1
- Instalační složka
- %ProgramFiles%\NAPS2
PowerShell: stáhnout, ověřit, nainstalovat
Stáhne oficiální soubor, ověří SHA256 a program nainstaluje v tichém režimu.
install-naps2.ps1
$url = 'https://github.com/cyanfish/naps2/releases/download/v8.6.1/naps2-8.6.1-win-x64.exe'
$sha256 = '0AA5AB6797367A10E01063DEFF0E4E34C2163480038EC6570742E5CD213EE57D'
$file = Join-Path $env:TEMP 'naps2-8.6.1-win-x64.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-naps2.ps1
$url = 'https://github.com/cyanfish/naps2/releases/download/v8.6.1/naps2-8.6.1-win-x64.msix'
$sha256 = '286C9139559CB4A7EFC3E2567C1777030E961D941569BBCF025DBA5DF7A24844'
$file = Join-Path $env:TEMP 'naps2-8.6.1-win-x64.msix'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-naps2.ps1
$url = 'https://github.com/cyanfish/naps2/releases/download/v8.6.1/naps2-8.6.1-win-x64.msi'
$sha256 = 'DB9768A748CC3DE5B21A4FBAB468DECA900EEC9ACF7B2B52A8D257DA996E9AA2'
$file = Join-Path $env:TEMP 'naps2-8.6.1-win-x64.msi'
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-naps2.ps1
$url = 'https://github.com/cyanfish/naps2/releases/download/v8.6.1/naps2-8.6.1-win-arm64.exe'
$sha256 = '39AFF569DBD42D23A9833A023846F060EDEC0B1CAD6639DC5B26E5B796C45A8A'
$file = Join-Path $env:TEMP 'naps2-8.6.1-win-arm64.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