Notepad--を確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id ndd.Notepad-- -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ndd.Notepad-- -e --silentwinget uninstall --id ndd.Notepad-- -e --silentインストーラー別
64ビット · EXE(Inno Setup) · 現在のユーザー · en-US
サイレントインストール
Notepad--v3.7.2-plugin-Installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
Notepad--v3.7.2-plugin-Installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\notepad"64ビット · EXE(Inno Setup) · 現在のユーザー · zh-CN
サイレントインストール
Notepad--v3.7.2-plugin-Installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
Notepad--v3.7.2-plugin-Installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\notepad"64ビット · EXE(Inno Setup) · すべてのユーザー · en-US
サイレントインストール
Notepad--v3.7.2-plugin-Installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
Notepad--v3.7.2-plugin-Installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\notepad"64ビット · EXE(Inno Setup) · すべてのユーザー · zh-CN
サイレントインストール
Notepad--v3.7.2-plugin-Installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
Notepad--v3.7.2-plugin-Installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\notepad"PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-notepad.ps1
$url = 'https://github.com/cxasm/notepad--/releases/download/notepad-v3.7.2/Notepad--v3.7.2-plugin-Installer.exe'
$sha256 = 'DD983460AAE57101F5279F95569B62A5702245D0589DCBF43AD45A1C7166063A'
$file = Join-Path $env:TEMP 'Notepad--v3.7.2-plugin-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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-notepad.ps1
$url = 'https://gitee.com/cxasm/notepad--/releases/download/v3.7.2/Notepad--v3.7.2-plugin-Installer.exe'
$sha256 = 'DD983460AAE57101F5279F95569B62A5702245D0589DCBF43AD45A1C7166063A'
$file = Join-Path $env:TEMP 'Notepad--v3.7.2-plugin-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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-notepad.ps1
$url = 'https://github.com/cxasm/notepad--/releases/download/notepad-v3.7.2/Notepad--v3.7.2-plugin-Installer.exe'
$sha256 = 'DD983460AAE57101F5279F95569B62A5702245D0589DCBF43AD45A1C7166063A'
$file = Join-Path $env:TEMP 'Notepad--v3.7.2-plugin-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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-notepad.ps1
$url = 'https://gitee.com/cxasm/notepad--/releases/download/v3.7.2/Notepad--v3.7.2-plugin-Installer.exe'
$sha256 = 'DD983460AAE57101F5279F95569B62A5702245D0589DCBF43AD45A1C7166063A'
$file = Join-Path $env:TEMP 'Notepad--v3.7.2-plugin-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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait