Oxygen XML Editorを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id SyncROSoft.OxygenXMLEditor -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SyncROSoft.OxygenXMLEditor -e --silentwinget uninstall --id SyncROSoft.OxygenXMLEditor -e --silentインストーラー別
64ビット · EXE · 現在のユーザー
サイレントインストール
oxygen-64bit-openjdk.exe -q -Dinstall4j.suppressUnattendedReboot=true- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\8531-1278-6363-8538
64ビット · EXE · すべてのユーザー
サイレントインストール
oxygen-64bit-openjdk.exe -q -Dinstall4j.suppressUnattendedReboot=true- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\8531-1278-6363-8538
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-oxygen-xml-editor.ps1
$url = 'https://archives.oxygenxml.com/Oxygen/Editor/InstData29.0/Windows64/VM/oxygen-64bit-openjdk.exe'
$sha256 = '6E1EE9DB4F805616E0BACA3F4F2A87AC348D0AB631B0A55467B3242ECEE5B6C5'
$file = Join-Path $env:TEMP 'oxygen-64bit-openjdk.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 '-q -Dinstall4j.suppressUnattendedReboot=true' -Wait install-oxygen-xml-editor.ps1
$url = 'https://archives.oxygenxml.com/Oxygen/Editor/InstData29.0/Windows64/VM/oxygen-64bit-openjdk.exe'
$sha256 = '6E1EE9DB4F805616E0BACA3F4F2A87AC348D0AB631B0A55467B3242ECEE5B6C5'
$file = Join-Path $env:TEMP 'oxygen-64bit-openjdk.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 '-q -Dinstall4j.suppressUnattendedReboot=true' -Wait