Ordres per instal·lar NAPS2 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 Cyanfish.NAPS2 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Cyanfish.NAPS2 -e --silentwinget uninstall --id Cyanfish.NAPS2 -e --silentPer instal·lador
64 bits · EXE (Inno Setup) · Tots els usuaris
Instal·lació silenciosa
naps2-8.6.0-win-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
naps2-8.6.0-win-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\naps2"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\NAPS2 - Not Another PDF Scanner_is1
- Carpeta d’instal·lació
- %ProgramFiles%\NAPS2
64 bits · MSIX
Instal·lació silenciosa
Add-AppxPackage -Path naps2-8.6.0-win-x64.msixDesinstal·lar
Get-AppxPackage -Name NAPS2Software.NAPS2-NotAnotherPDFScanner | Remove-AppxPackage64 bits · MSI · Tots els usuaris
Instal·lació silenciosa
msiexec /i naps2-8.6.0-win-x64.msi /qn /norestartDesar un registre
msiexec /i naps2-8.6.0-win-x64.msi /qn /norestart /l*v "%TEMP%\naps2-install.log"Desinstal·lar
msiexec /x {507191D7-79F9-4754-93B6-754ECC2BB6CA} /qn /norestart- Codi de producte MSI
- {507191D7-79F9-4754-93B6-754ECC2BB6CA}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{507191D7-79F9-4754-93B6-754ECC2BB6CA}
- UpgradeCode
- {FEB82971-B3E6-4F19-9684-1D543E644D73}
- Carpeta d’instal·lació
- %ProgramFiles%\NAPS2
ARM64 · EXE (Inno Setup) · Tots els usuaris
Instal·lació silenciosa
naps2-8.6.0-win-arm64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
naps2-8.6.0-win-arm64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\naps2"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\NAPS2 - Not Another PDF Scanner_is1
- Carpeta d’instal·lació
- %ProgramFiles%\NAPS2
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-naps2.ps1
$url = 'https://github.com/cyanfish/naps2/releases/download/v8.6.0/naps2-8.6.0-win-x64.exe'
$sha256 = '684E26D2145BCEAB5199971B8620DD715CBEB824ECDC080FE122912B1486DA22'
$file = Join-Path $env:TEMP 'naps2-8.6.0-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.0/naps2-8.6.0-win-x64.msix'
$sha256 = 'BD0275244BFBC6D16144F9EA5916E41BA050C5EC6027E1E093C2210D544282A1'
$file = Join-Path $env:TEMP 'naps2-8.6.0-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.0/naps2-8.6.0-win-x64.msi'
$sha256 = '37CA3798BFD414AA2D101D64F1F249A05CC6A1710A7F5B90BFE7303EF3537F26'
$file = Join-Path $env:TEMP 'naps2-8.6.0-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.0/naps2-8.6.0-win-arm64.exe'
$sha256 = 'B646A4D85A4D59208F21466A0CED4DE29663F852F87462921265C67813F98A5B'
$file = Join-Path $env:TEMP 'naps2-8.6.0-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