zyfunを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id HiramWong.zyfun -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id HiramWong.zyfun -e --silentwinget uninstall --id HiramWong.zyfun -e --silentインストーラー別
64ビット · EXE(NSIS) · en-US
サイレントインストール
zyfun-win-3.4.7-x64-setup.exe /Sインストール先を指定
zyfun-win-3.4.7-x64-setup.exe /S /D=C:\Apps\zyfun- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\1cf4e394-3cb1-57f9-a0e2-d9add46ad139
ARM64 · EXE(NSIS) · en-US
サイレントインストール
zyfun-win-3.4.7-arm64-setup.exe /Sインストール先を指定
zyfun-win-3.4.7-arm64-setup.exe /S /D=C:\Apps\zyfun- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\1cf4e394-3cb1-57f9-a0e2-d9add46ad139
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-zyfun.ps1
$url = 'https://github.com/Hiram-Wong/zyfun/releases/download/v3.4.7/zyfun-win-3.4.7-x64-setup.exe'
$sha256 = '5147442AEFA27C6300E9CBA7BD03959C49BB9022DFF771A5EB9F8508C19D8D9A'
$file = Join-Path $env:TEMP 'zyfun-win-3.4.7-x64-setup.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-zyfun.ps1
$url = 'https://github.com/Hiram-Wong/zyfun/releases/download/v3.4.7/zyfun-win-3.4.7-arm64-setup.exe'
$sha256 = 'CA61C5BB2124E92205B897DD8592F57D385FA88CCE506565EFEF7316B8E046B7'
$file = Join-Path $env:TEMP 'zyfun-win-3.4.7-arm64-setup.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