NAPS2 کو بغیر کسی سوال کے انسٹال کرنے، دوبارہ ہٹانے اور ڈیپلائمنٹ ٹولز میں اس کی شناخت کرنے کی کمانڈز۔ کوئی کمانڈ صرف تب دکھائی جاتی ہے جب وہ یقینی ہو: مینی فیسٹ سے یا انسٹالر ٹیکنالوجی کی دستاویزی ڈیفالٹ سیٹنگ سے۔
متعلقہ گائیڈ: خاموش انسٹالیشن کے سوئچز: MSI، NSIS، Inno Setup · رجسٹری یا PowerShell سے پروگرام ان انسٹال کریں
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 --silentانسٹالر کے لحاظ سے
64 بٹ · EXE (Inno Setup) · تمام صارفین
خاموش انسٹالیشن
naps2-8.6.0-win-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-اپنی پسند کا فولڈر
naps2-8.6.0-win-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\naps2"- ان انسٹال رجسٹری کی
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\NAPS2 - Not Another PDF Scanner_is1
- انسٹالیشن فولڈر
- %ProgramFiles%\NAPS2
64 بٹ · MSIX
خاموش انسٹالیشن
Add-AppxPackage -Path naps2-8.6.0-win-x64.msixان انسٹال
Get-AppxPackage -Name NAPS2Software.NAPS2-NotAnotherPDFScanner | Remove-AppxPackage64 بٹ · MSI · تمام صارفین
خاموش انسٹالیشن
msiexec /i naps2-8.6.0-win-x64.msi /qn /norestartلاگ فائل لکھیں
msiexec /i naps2-8.6.0-win-x64.msi /qn /norestart /l*v "%TEMP%\naps2-install.log"ان انسٹال
msiexec /x {507191D7-79F9-4754-93B6-754ECC2BB6CA} /qn /norestart- MSI پروڈکٹ کوڈ
- {507191D7-79F9-4754-93B6-754ECC2BB6CA}
- ان انسٹال رجسٹری کی
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{507191D7-79F9-4754-93B6-754ECC2BB6CA}
- UpgradeCode
- {FEB82971-B3E6-4F19-9684-1D543E644D73}
- انسٹالیشن فولڈر
- %ProgramFiles%\NAPS2
ARM64 · EXE (Inno Setup) · تمام صارفین
خاموش انسٹالیشن
naps2-8.6.0-win-arm64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-اپنی پسند کا فولڈر
naps2-8.6.0-win-arm64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\naps2"- ان انسٹال رجسٹری کی
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\NAPS2 - Not Another PDF Scanner_is1
- انسٹالیشن فولڈر
- %ProgramFiles%\NAPS2
PowerShell: ڈاؤن لوڈ، تصدیق، انسٹال
سرکاری فائل ڈاؤن لوڈ کرتا ہے، اس کا SHA256 جانچتا ہے اور خاموشی سے انسٹال کرتا ہے۔
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