免互動安裝SolidCraft、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id bherbruck.SolidCraft -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id bherbruck.SolidCraft -e --silentwinget uninstall --id bherbruck.SolidCraft -e --silent依安裝檔
64位元 · MSI · 所有使用者
靜默安裝
msiexec /i solidcraft-0.30.1-windows-x64.msi /qn /norestart寫入記錄檔
msiexec /i solidcraft-0.30.1-windows-x64.msi /qn /norestart /l*v "%TEMP%\solidcraft-install.log"解除安裝
msiexec /x {75B5BA9B-73F1-4291-BE93-E182BA046F66} /qn /norestart- MSI產品代碼
- {75B5BA9B-73F1-4291-BE93-E182BA046F66}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{75B5BA9B-73F1-4291-BE93-E182BA046F66}
- UpgradeCode
- {6A145FD6-D285-428D-AE84-A69570CDF4DB}
ARM64 · MSI · 所有使用者
靜默安裝
msiexec /i solidcraft-0.30.1-windows-arm64.msi /qn /norestart寫入記錄檔
msiexec /i solidcraft-0.30.1-windows-arm64.msi /qn /norestart /l*v "%TEMP%\solidcraft-install.log"解除安裝
msiexec /x {0AF03221-9157-4722-8607-F750E0E3CFBB} /qn /norestart- MSI產品代碼
- {0AF03221-9157-4722-8607-F750E0E3CFBB}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{0AF03221-9157-4722-8607-F750E0E3CFBB}
- UpgradeCode
- {6A145FD6-D285-428D-AE84-A69570CDF4DB}
32位元 · MSI · 所有使用者
靜默安裝
msiexec /i solidcraft-0.30.1-windows-x86.msi /qn /norestart寫入記錄檔
msiexec /i solidcraft-0.30.1-windows-x86.msi /qn /norestart /l*v "%TEMP%\solidcraft-install.log"解除安裝
msiexec /x {5685EC31-6538-407D-BC16-AC1D05840C50} /qn /norestart- MSI產品代碼
- {5685EC31-6538-407D-BC16-AC1D05840C50}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{5685EC31-6538-407D-BC16-AC1D05840C50}
- UpgradeCode
- {6A145FD6-D285-428D-AE84-A69570CDF4DB}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-solidcraft.ps1
$url = 'https://github.com/tangency-labs/solidcraft/releases/download/v0.30.1/solidcraft-0.30.1-windows-x64.msi'
$sha256 = 'B96604B0DB93FCA1D6333102D642406E9E30E99D6F486F1D2867FD5198262840'
$file = Join-Path $env:TEMP 'solidcraft-0.30.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-solidcraft.ps1
$url = 'https://github.com/tangency-labs/solidcraft/releases/download/v0.30.1/solidcraft-0.30.1-windows-arm64.msi'
$sha256 = 'B2327BE3738C0D7747BF95BB72CCCEE9B7BC7CE0976CDE535B681C4DCC13E43E'
$file = Join-Path $env:TEMP 'solidcraft-0.30.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 install-solidcraft.ps1
$url = 'https://github.com/tangency-labs/solidcraft/releases/download/v0.30.1/solidcraft-0.30.1-windows-x86.msi'
$sha256 = 'CF78919B535FF69CC077AD243CC53BAD44FE258F9B6168649944C90EC7AC1B82'
$file = Join-Path $env:TEMP 'solidcraft-0.30.1-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