MDZip Studioを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id MDZip.Studio -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id MDZip.Studio -e --silentwinget uninstall --id MDZip.Studio -e --silentインストーラー別
64ビット · EXE(NSIS) · 現在のユーザー
サイレントインストール
MDZip-Studio-Setup-1.6.0.exe /S /currentuserインストール先を指定
MDZip-Studio-Setup-1.6.0.exe /S /currentuser /D=C:\Apps\mdzip-studio64ビット · EXE(NSIS) · すべてのユーザー
サイレントインストール
MDZip-Studio-Setup-1.6.0.exe /S /allusers /mdzipExplorerIntegrationインストール先を指定
MDZip-Studio-Setup-1.6.0.exe /S /allusers /mdzipExplorerIntegration /D=C:\Apps\mdzip-studioPowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-mdzip-studio.ps1
$url = 'https://github.com/mdzip-project/mdzip-studio/releases/download/v1.6.0/MDZip-Studio-Setup-1.6.0.exe'
$sha256 = '5AED0EBBDAB20578CBDB1F2148E881C923D89CE6EE3350EE01A7895C6CE1EFBF'
$file = Join-Path $env:TEMP 'MDZip-Studio-Setup-1.6.0.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 /currentuser' -Wait install-mdzip-studio.ps1
$url = 'https://github.com/mdzip-project/mdzip-studio/releases/download/v1.6.0/MDZip-Studio-Setup-1.6.0.exe'
$sha256 = '5AED0EBBDAB20578CBDB1F2148E881C923D89CE6EE3350EE01A7895C6CE1EFBF'
$file = Join-Path $env:TEMP 'MDZip-Studio-Setup-1.6.0.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 /allusers /mdzipExplorerIntegration' -Wait