Yamesを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id turutupa.yames -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id turutupa.yames -e --silentwinget uninstall --id turutupa.yames -e --silentインストーラー別
64ビット · EXE(NSIS) · 現在のユーザー
サイレントインストール
Yames_1.2.2_x64-setup.exe /Sインストール先を指定
Yames_1.2.2_x64-setup.exe /S /D=C:\Apps\yames- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Yames
- インストール先フォルダー
- %LocalAppData%\Yames
64ビット · MSI · すべてのユーザー
サイレントインストール
msiexec /i Yames_1.2.2_x64_en-US.msi /qn /norestartログを出力
msiexec /i Yames_1.2.2_x64_en-US.msi /qn /norestart /l*v "%TEMP%\yames-install.log"アンインストール
msiexec /x {9B0BF875-7E6F-4D12-8CFC-0DAAB681BEB2} /qn /norestart- MSIプロダクトコード
- {9B0BF875-7E6F-4D12-8CFC-0DAAB681BEB2}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9B0BF875-7E6F-4D12-8CFC-0DAAB681BEB2}
- UpgradeCode
- {F3AD219D-1D7A-5ABB-AA9A-231D036B7413}
- インストール先フォルダー
- %ProgramFiles%\Yames
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-yames.ps1
$url = 'https://github.com/turutupa/yames/releases/download/v1.2.2/Yames_1.2.2_x64-setup.exe'
$sha256 = 'C07DE539112D53374FDF58AFAFA5CD75ADF674243AD6CAA7497378DEF1D7C3E8'
$file = Join-Path $env:TEMP 'Yames_1.2.2_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-yames.ps1
$url = 'https://github.com/turutupa/yames/releases/download/v1.2.2/Yames_1.2.2_x64_en-US.msi'
$sha256 = '676ADEC128542390B3F54488F6FA13DEF84A959B438DEAF38FA06AF389796E6C'
$file = Join-Path $env:TEMP 'Yames_1.2.2_x64_en-US.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait