Groxを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id dandandujie.Grox -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id dandandujie.Grox -e --silentwinget uninstall --id dandandujie.Grox -e --silentインストーラー別
64ビット · EXE(NSIS) · 現在のユーザー
サイレントインストール
Grox_0.3.5_x64-setup.exe /Sインストール先を指定
Grox_0.3.5_x64-setup.exe /S /D=C:\Apps\grox- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Grox
- インストール先フォルダー
- %LocalAppData%\Grox
64ビット · MSI · すべてのユーザー
サイレントインストール
msiexec /i Grox_0.3.5_x64_en-US.msi /qn /norestartログを出力
msiexec /i Grox_0.3.5_x64_en-US.msi /qn /norestart /l*v "%TEMP%\grox-install.log"アンインストール
msiexec /x {CDCDAC7A-8C88-4754-9047-4FBF9534046B} /qn /norestart- MSIプロダクトコード
- {CDCDAC7A-8C88-4754-9047-4FBF9534046B}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{CDCDAC7A-8C88-4754-9047-4FBF9534046B}
- UpgradeCode
- {C9AC2B7E-4051-58E6-BA2F-C904BCEA8975}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-grox.ps1
$url = 'https://github.com/dandandujie/Grox/releases/download/v0.3.5/Grox_0.3.5_x64-setup.exe'
$sha256 = '25C72DC0EC4561B2A61E8EA6728FD20E0306980B1003CAD83CD260C9732C21DA'
$file = Join-Path $env:TEMP 'Grox_0.3.5_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-grox.ps1
$url = 'https://github.com/dandandujie/Grox/releases/download/v0.3.5/Grox_0.3.5_x64_en-US.msi'
$sha256 = 'E548AD33BAD6A331661C71B754EEB163FAAAE069FB654BD34F1AB76AEFE1CA38'
$file = Join-Path $env:TEMP 'Grox_0.3.5_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