Simple Sticky Notesを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Simnet.SimpleStickyNotes -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Simnet.SimpleStickyNotes -e --silentwinget uninstall --id Simnet.SimpleStickyNotes -e --silentインストーラー別
32ビット · EXE(Inno Setup) · すべてのユーザー
サイレントインストール
Setup_SimpleStickyNotes.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
Setup_SimpleStickyNotes.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\simple-sticky-notes"- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Simple Sticky Notes_is1
- インストール先フォルダー
- %ProgramFiles%\Simnet\Simple Sticky Notes
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-simple-sticky-notes.ps1
$url = 'https://www.simplestickynotes.com/setup/Setup_SimpleStickyNotes.exe'
$sha256 = '5A5DCADEE27C31179E0A8D8B8B96D1BCEFC90D1FDCEDDCC0DA759A3B9A8850FC'
$file = Join-Path $env:TEMP 'Setup_SimpleStickyNotes.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