MShellを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id inspoaibox.Mshell -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id inspoaibox.Mshell -e --silentwinget uninstall --id inspoaibox.Mshell -e --silentインストーラー別
64ビット · EXE(NSIS) · 現在のユーザー
サイレントインストール
MShell-Setup-0.2.21.exe /Sインストール先を指定
MShell-Setup-0.2.21.exe /S /D=C:\Apps\mshell- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\cc256850-b136-5fb2-bce5-718f0e7ee6cb
64ビット · EXE(NSIS) · すべてのユーザー
サイレントインストール
MShell-Setup-0.2.21.exe /Sインストール先を指定
MShell-Setup-0.2.21.exe /S /D=C:\Apps\mshell- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\cc256850-b136-5fb2-bce5-718f0e7ee6cb
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-mshell.ps1
$url = 'https://github.com/inspoaibox/Mshell/releases/download/V0.2.21/MShell-Setup-0.2.21.exe'
$sha256 = '3D068F4D8317C543B0EE6B3F51EAA9AB7A3E9CF5F8898907BE501D7CEA5B8C47'
$file = Join-Path $env:TEMP 'MShell-Setup-0.2.21.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-mshell.ps1
$url = 'https://github.com/inspoaibox/Mshell/releases/download/V0.2.21/MShell-Setup-0.2.21.exe'
$sha256 = '3D068F4D8317C543B0EE6B3F51EAA9AB7A3E9CF5F8898907BE501D7CEA5B8C47'
$file = Join-Path $env:TEMP 'MShell-Setup-0.2.21.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