NAPS2 ကို မေးခွန်းမမေးဘဲ ထည့်သွင်းရန်၊ ပြန်ဖယ်ရှားရန်နှင့် deployment ကိရိယာများမှ ထောက်လှမ်းရန် command များ ဖြစ်ပါသည်။ command တစ်ခုကို သေချာမှသာ ပြပါသည် — manifest မှ သို့မဟုတ် installer နည်းပညာ၏ မှတ်တမ်းတင်ထားသော မူလတန်ဖိုးမှ ဖြစ်ပါသည်။
ဆက်စပ် လမ်းညွှန်: အသံတိတ်ထည့်သွင်းခြင်း switch များ - MSI၊ NSIS၊ Inno Setup · Registry သို့မဟုတ် 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 --silentInstaller အလိုက်
64-bit · EXE (Inno Setup) · အသုံးပြုသူအားလုံး
အသံတိတ်ထည့်သွင်းခြင်း
naps2-8.6.1-win-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-စိတ်ကြိုက် ဖိုင်တွဲ
naps2-8.6.1-win-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\naps2"- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\NAPS2 - Not Another PDF Scanner_is1
- ထည့်သွင်းမည့် ဖိုင်တွဲ
- %ProgramFiles%\NAPS2
64-bit · MSIX
အသံတိတ်ထည့်သွင်းခြင်း
Add-AppxPackage -Path naps2-8.6.1-win-x64.msixဖယ်ရှားခြင်း (Uninstall)
Get-AppxPackage -Name NAPS2Software.NAPS2-NotAnotherPDFScanner | Remove-AppxPackage64-bit · MSI · အသုံးပြုသူအားလုံး
အသံတိတ်ထည့်သွင်းခြင်း
msiexec /i naps2-8.6.1-win-x64.msi /qn /norestartLog ဖိုင် ရေးရန်
msiexec /i naps2-8.6.1-win-x64.msi /qn /norestart /l*v "%TEMP%\naps2-install.log"ဖယ်ရှားခြင်း (Uninstall)
msiexec /x {30145F95-2A07-4839-9996-0D20799E2F15} /qn /norestart- MSI product code
- {30145F95-2A07-4839-9996-0D20799E2F15}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{30145F95-2A07-4839-9996-0D20799E2F15}
- UpgradeCode
- {FEB82971-B3E6-4F19-9684-1D543E644D73}
- ထည့်သွင်းမည့် ဖိုင်တွဲ
- %ProgramFiles%\NAPS2
ARM64 · EXE (Inno Setup) · အသုံးပြုသူအားလုံး
အသံတိတ်ထည့်သွင်းခြင်း
naps2-8.6.1-win-arm64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-စိတ်ကြိုက် ဖိုင်တွဲ
naps2-8.6.1-win-arm64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\naps2"- Uninstall registry key
- 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.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