Texmakerを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Texmaker.Texmaker -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Texmaker.Texmaker -e --silentwinget uninstall --id Texmaker.Texmaker -e --silentインストーラー別
64ビット · MSI · すべてのユーザー
サイレントインストール
msiexec /i Texmaker_6.0.2_Win_x64.msi /qn /norestartログを出力
msiexec /i Texmaker_6.0.2_Win_x64.msi /qn /norestart /l*v "%TEMP%\texmaker-install.log"アンインストール
msiexec /x {2D2EA2E0-47C8-4BCE-8B1C-6AEC215EADBE} /qn /norestart- MSIプロダクトコード
- {2D2EA2E0-47C8-4BCE-8B1C-6AEC215EADBE}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2D2EA2E0-47C8-4BCE-8B1C-6AEC215EADBE}
- UpgradeCode
- {002AC03D-DC46-4770-802C-F67EE8F1C831}
- インストール先フォルダー
- %ProgramFiles%\Texmaker\Texmaker
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-texmaker.ps1
$url = 'https://www.xm1math.net/texmaker/assets/files/Texmaker_6.0.2_Win_x64.msi'
$sha256 = 'E583B56E995235CF860E47920FF0665B15E9188C66990F23E3D1658244D069AB'
$file = Join-Path $env:TEMP 'Texmaker_6.0.2_Win_x64.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