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