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