Python Launcherを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id VinaySajip.PythonLauncher -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id VinaySajip.PythonLauncher -e --silentwinget uninstall --id VinaySajip.PythonLauncher -e --silentインストーラー別
64ビット · MSI
サイレントインストール
msiexec /i launcher-1.0.1.6.amd64.msi /qn /norestartログを出力
msiexec /i launcher-1.0.1.6.amd64.msi /qn /norestart /l*v "%TEMP%\python-launcher-vinay-sajip-install.log"アンインストール
msiexec /x {1CB6C42B-5887-47CF-AF21-988256F0455B} /qn /norestart- MSIプロダクトコード
- {1CB6C42B-5887-47CF-AF21-988256F0455B}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1CB6C42B-5887-47CF-AF21-988256F0455B}
32ビット · MSI
サイレントインストール
msiexec /i launcher-1.0.1.6.msi /qn /norestartログを出力
msiexec /i launcher-1.0.1.6.msi /qn /norestart /l*v "%TEMP%\python-launcher-vinay-sajip-install.log"アンインストール
msiexec /x {298B5D62-1287-427F-B8D9-B44D605F8F6B} /qn /norestart- MSIプロダクトコード
- {298B5D62-1287-427F-B8D9-B44D605F8F6B}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{298B5D62-1287-427F-B8D9-B44D605F8F6B}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-python-launcher-vinay-sajip.ps1
$url = 'https://bitbucket.org/vinay.sajip/pylauncher/downloads/launcher-1.0.1.6.amd64.msi'
$sha256 = '3CA4B4021FF2D35CE176A099E9F1DD73A920170FB0D3E9165D934700EA689DCE'
$file = Join-Path $env:TEMP 'launcher-1.0.1.6.amd64.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 install-python-launcher-vinay-sajip.ps1
$url = 'https://bitbucket.org/vinay.sajip/pylauncher/downloads/launcher-1.0.1.6.msi'
$sha256 = '08004667A92980DFAF154FB4C95113428B0E925B18C0B2C95741B18ED65EBC0C'
$file = Join-Path $env:TEMP 'launcher-1.0.1.6.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