ShareNotを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Cosebdd.ShareNot -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Cosebdd.ShareNot -e --silentwinget uninstall --id Cosebdd.ShareNot -e --silentインストーラー別
64ビット · EXE(Inno Setup) · すべてのユーザー
サイレントインストール
ShareNot-21.0.0-setup-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
ShareNot-21.0.0-setup-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\sharenot"- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\D486E2F0-4F76-419B-8CDE-98DE420A321F_is1
ARM64 · EXE(Inno Setup) · すべてのユーザー
サイレントインストール
ShareNot-21.0.0-setup-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
ShareNot-21.0.0-setup-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\sharenot"- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\D486E2F0-4F76-419B-8CDE-98DE420A321F_is1
32ビット · EXE(Inno Setup) · すべてのユーザー
サイレントインストール
ShareNot-21.0.0-setup-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
ShareNot-21.0.0-setup-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\sharenot"- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\D486E2F0-4F76-419B-8CDE-98DE420A321F_is1
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-sharenot.ps1
$url = 'https://github.com/Cosebdd/ShareNot/releases/download/v21.0.0/ShareNot-21.0.0-setup-x64.exe'
$sha256 = 'DFCB95BE2465DC07E89E7FE8A9411628348FA0C97A2266808BE968E07929E63C'
$file = Join-Path $env:TEMP 'ShareNot-21.0.0-setup-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-sharenot.ps1
$url = 'https://github.com/Cosebdd/ShareNot/releases/download/v21.0.0/ShareNot-21.0.0-setup-x64.exe'
$sha256 = 'DFCB95BE2465DC07E89E7FE8A9411628348FA0C97A2266808BE968E07929E63C'
$file = Join-Path $env:TEMP 'ShareNot-21.0.0-setup-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-sharenot.ps1
$url = 'https://github.com/Cosebdd/ShareNot/releases/download/v21.0.0/ShareNot-21.0.0-setup-x64.exe'
$sha256 = 'DFCB95BE2465DC07E89E7FE8A9411628348FA0C97A2266808BE968E07929E63C'
$file = Join-Path $env:TEMP 'ShareNot-21.0.0-setup-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