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