LightCraftを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id ArtCraft.LightCraft -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ArtCraft.LightCraft -e --silentwinget uninstall --id ArtCraft.LightCraft -e --silentインストーラー別
64ビット · MSI · すべてのユーザー
サイレントインストール
msiexec /i lightcraft-0.21.1-windows-x64.msi /qn /norestartログを出力
msiexec /i lightcraft-0.21.1-windows-x64.msi /qn /norestart /l*v "%TEMP%\lightcraft-install.log"アンインストール
msiexec /x {C9504483-D622-4974-9895-C685BA97ECBF} /qn /norestart- MSIプロダクトコード
- {C9504483-D622-4974-9895-C685BA97ECBF}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{C9504483-D622-4974-9895-C685BA97ECBF}
- UpgradeCode
- {229BB552-5EFD-479A-BA86-8CB6D926390C}
ARM64 · MSI · すべてのユーザー
サイレントインストール
msiexec /i lightcraft-0.21.1-windows-arm64.msi /qn /norestartログを出力
msiexec /i lightcraft-0.21.1-windows-arm64.msi /qn /norestart /l*v "%TEMP%\lightcraft-install.log"アンインストール
msiexec /x {327037C5-1799-4EC7-9F9B-4C9193A702CE} /qn /norestart- MSIプロダクトコード
- {327037C5-1799-4EC7-9F9B-4C9193A702CE}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{327037C5-1799-4EC7-9F9B-4C9193A702CE}
- UpgradeCode
- {229BB552-5EFD-479A-BA86-8CB6D926390C}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-lightcraft.ps1
$url = 'https://github.com/storytold/lightcraft/releases/download/v0.21.1/lightcraft-0.21.1-windows-x64.msi'
$sha256 = '16B8F4E12C93120B2DB5A5F567798D1D1F33E2F55DDEE901F1C8C0F072558A25'
$file = Join-Path $env:TEMP 'lightcraft-0.21.1-windows-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 install-lightcraft.ps1
$url = 'https://github.com/storytold/lightcraft/releases/download/v0.21.1/lightcraft-0.21.1-windows-arm64.msi'
$sha256 = '0B5FFA35171B8433AF7D9112B2E1BE7E87996B8E4222EB10859541F336061459'
$file = Join-Path $env:TEMP 'lightcraft-0.21.1-windows-arm64.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