免互動安裝Notejoy、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id MonkiLabs.Notejoy -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id MonkiLabs.Notejoy -e --silentwinget uninstall --id MonkiLabs.Notejoy -e --silent依安裝檔
64位元 · EXE
靜默安裝
notejoy_win32_x64_2.0.0_setup.exe /s32位元 · EXE
靜默安裝
notejoy_win32_ia32_2.0.0_setup.exe /sPowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-notejoy.ps1
$url = 'https://s3.amazonaws.com/notejoy/clients/notejoy_win32_x64_2.0.0_setup.exe'
$sha256 = 'B3D2D5F0A4E3EE13D82AC21A190EE3FAFF79E0710FCB6E6E5F6C2C09B9B2C10C'
$file = Join-Path $env:TEMP 'notejoy_win32_x64_2.0.0_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 '/s' -Wait install-notejoy.ps1
$url = 'https://s3.amazonaws.com/notejoy/clients/notejoy_win32_ia32_2.0.0_setup.exe'
$sha256 = '5058A550E62C063E7BD6708D82FE2AAD9B6AA9474A1EE636746C55471CDE41C5'
$file = Join-Path $env:TEMP 'notejoy_win32_ia32_2.0.0_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 '/s' -Wait