Emdashを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id GeneralAction.Emdash -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id GeneralAction.Emdash -e --silentwinget uninstall --id GeneralAction.Emdash -e --silentインストーラー別
64ビット · EXE(NSIS) · 現在のユーザー
サイレントインストール
emdash-x64.exe /Sインストール先を指定
emdash-x64.exe /S /D=C:\Apps\emdash- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\08411f99-9cb4-5850-8e23-4ddce9cac7dd
- インストール先フォルダー
- %LocalAppData%\Programs\Emdash
64ビット · EXE(NSIS) · すべてのユーザー
サイレントインストール
emdash-x64.exe /Sインストール先を指定
emdash-x64.exe /S /D=C:\Apps\emdash- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\08411f99-9cb4-5850-8e23-4ddce9cac7dd
- インストール先フォルダー
- %ProgramFiles%\Emdash
64ビット · MSI · すべてのユーザー
サイレントインストール
msiexec /i emdash-x64.msi /qn /norestartログを出力
msiexec /i emdash-x64.msi /qn /norestart /l*v "%TEMP%\emdash-install.log"アンインストール
msiexec /x {8CB32585-5230-4F3E-963D-9657B4DD9794} /qn /norestart- MSIプロダクトコード
- {8CB32585-5230-4F3E-963D-9657B4DD9794}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8CB32585-5230-4F3E-963D-9657B4DD9794}
- UpgradeCode
- {451DC545-2793-59BD-9D0E-EE5BF5D4CA4C}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-emdash.ps1
$url = 'https://github.com/generalaction/emdash/releases/download/v1.2.10/emdash-x64.exe'
$sha256 = '7A772E11F4C5F68BC2D661C264BF93EEF427DD2CFCE5042FC572720549F35F03'
$file = Join-Path $env:TEMP 'emdash-x64.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-emdash.ps1
$url = 'https://github.com/generalaction/emdash/releases/download/v1.2.10/emdash-x64.exe'
$sha256 = '7A772E11F4C5F68BC2D661C264BF93EEF427DD2CFCE5042FC572720549F35F03'
$file = Join-Path $env:TEMP 'emdash-x64.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-emdash.ps1
$url = 'https://github.com/generalaction/emdash/releases/download/v1.2.10/emdash-x64.msi'
$sha256 = '226D454352C21EFE8D1538243F4165C6CCACA88B8BAA8C1149D5860018BC495C'
$file = Join-Path $env:TEMP 'emdash-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