免互動安裝EffectCraft、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id ArtCraft.EffectCraft -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ArtCraft.EffectCraft -e --silentwinget uninstall --id ArtCraft.EffectCraft -e --silent依安裝檔
64位元 · MSI · 所有使用者
靜默安裝
msiexec /i effectcraft-0.17.0-windows-x64.msi /qn /norestart寫入記錄檔
msiexec /i effectcraft-0.17.0-windows-x64.msi /qn /norestart /l*v "%TEMP%\effectcraft-install.log"解除安裝
msiexec /x {41F0760E-0673-4698-BB64-3426E820F58C} /qn /norestart- MSI產品代碼
- {41F0760E-0673-4698-BB64-3426E820F58C}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{41F0760E-0673-4698-BB64-3426E820F58C}
- UpgradeCode
- {AACA8593-C6ED-40A8-BA6C-CB325D8529F9}
ARM64 · MSI · 所有使用者
靜默安裝
msiexec /i effectcraft-0.17.0-windows-arm64.msi /qn /norestart寫入記錄檔
msiexec /i effectcraft-0.17.0-windows-arm64.msi /qn /norestart /l*v "%TEMP%\effectcraft-install.log"解除安裝
msiexec /x {73B92098-7D71-4FFE-8BA9-F75BB64BD3B8} /qn /norestart- MSI產品代碼
- {73B92098-7D71-4FFE-8BA9-F75BB64BD3B8}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{73B92098-7D71-4FFE-8BA9-F75BB64BD3B8}
- UpgradeCode
- {AACA8593-C6ED-40A8-BA6C-CB325D8529F9}
32位元 · MSI · 所有使用者
靜默安裝
msiexec /i effectcraft-0.17.0-windows-x86.msi /qn /norestart寫入記錄檔
msiexec /i effectcraft-0.17.0-windows-x86.msi /qn /norestart /l*v "%TEMP%\effectcraft-install.log"解除安裝
msiexec /x {9B25346A-F972-46FF-B409-70903DB483DC} /qn /norestart- MSI產品代碼
- {9B25346A-F972-46FF-B409-70903DB483DC}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{9B25346A-F972-46FF-B409-70903DB483DC}
- UpgradeCode
- {AACA8593-C6ED-40A8-BA6C-CB325D8529F9}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-effectcraft.ps1
$url = 'https://github.com/storytold/effectcraft/releases/download/v0.17.0/effectcraft-0.17.0-windows-x64.msi'
$sha256 = '8F0C2E6F647A679D4075D365F863B9DEAB2D6EBCFA6BDD1C82826CB6816580EF'
$file = Join-Path $env:TEMP 'effectcraft-0.17.0-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-effectcraft.ps1
$url = 'https://github.com/storytold/effectcraft/releases/download/v0.17.0/effectcraft-0.17.0-windows-arm64.msi'
$sha256 = '7EA8E32244F46618A688E7C1ABA6B4164EB43CC0FDA96C9DA1BAC2226B473AF9'
$file = Join-Path $env:TEMP 'effectcraft-0.17.0-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 install-effectcraft.ps1
$url = 'https://github.com/storytold/effectcraft/releases/download/v0.17.0/effectcraft-0.17.0-windows-x86.msi'
$sha256 = '17E75B57B85C3BAFAA5DB54D64BD9B59AEB240AD331FE2DA8E6B39023E045AD0'
$file = Join-Path $env:TEMP 'effectcraft-0.17.0-windows-x86.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