NoteWizardを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id jetyu.NoteWizard -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id jetyu.NoteWizard -e --silentwinget uninstall --id jetyu.NoteWizard -e --silentインストーラー別
64ビット · EXE(NSIS) · 現在のユーザー
サイレントインストール
NoteWizard-Windows-x64.exe /Sインストール先を指定
NoteWizard-Windows-x64.exe /S /D=C:\Apps\notewizard- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\311618b3-7e2c-5abf-a371-a033fb506899
64ビット · EXE(NSIS) · すべてのユーザー
サイレントインストール
NoteWizard-Windows-x64.exe /Sインストール先を指定
NoteWizard-Windows-x64.exe /S /D=C:\Apps\notewizard- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\311618b3-7e2c-5abf-a371-a033fb506899
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-notewizard.ps1
$url = 'https://github.com/jetyu/NoteWizard/releases/download/v1.2.1/NoteWizard-Windows-x64.exe'
$sha256 = '6604916B082AE25462D9112E8A589DF9850F7482AFE81C9A40827F74A63A105B'
$file = Join-Path $env:TEMP 'NoteWizard-Windows-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 '/S' -Wait install-notewizard.ps1
$url = 'https://github.com/jetyu/NoteWizard/releases/download/v1.2.1/NoteWizard-Windows-x64.exe'
$sha256 = '6604916B082AE25462D9112E8A589DF9850F7482AFE81C9A40827F74A63A105B'
$file = Join-Path $env:TEMP 'NoteWizard-Windows-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 '/S' -Wait