免互動安裝VectorCraft、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id ArtCraft.VectorCraft -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ArtCraft.VectorCraft -e --silentwinget uninstall --id ArtCraft.VectorCraft -e --silent依安裝檔
64位元 · MSI · 所有使用者
靜默安裝
msiexec /i vectorcraft-0.17.0-windows-x64.msi /qn /norestart寫入記錄檔
msiexec /i vectorcraft-0.17.0-windows-x64.msi /qn /norestart /l*v "%TEMP%\vectorcraft-install.log"解除安裝
msiexec /x {1BAEC43A-AC44-4476-887E-D64AE1BBCC36} /qn /norestart- MSI產品代碼
- {1BAEC43A-AC44-4476-887E-D64AE1BBCC36}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1BAEC43A-AC44-4476-887E-D64AE1BBCC36}
- UpgradeCode
- {601C6437-08AE-4645-ADCC-27F036C2EA2F}
ARM64 · MSI · 所有使用者
靜默安裝
msiexec /i vectorcraft-0.17.0-windows-arm64.msi /qn /norestart寫入記錄檔
msiexec /i vectorcraft-0.17.0-windows-arm64.msi /qn /norestart /l*v "%TEMP%\vectorcraft-install.log"解除安裝
msiexec /x {0DDE2AF8-8F6B-4DF4-8D4E-49A97E0F3276} /qn /norestart- MSI產品代碼
- {0DDE2AF8-8F6B-4DF4-8D4E-49A97E0F3276}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{0DDE2AF8-8F6B-4DF4-8D4E-49A97E0F3276}
- UpgradeCode
- {601C6437-08AE-4645-ADCC-27F036C2EA2F}
32位元 · MSI · 所有使用者
靜默安裝
msiexec /i vectorcraft-0.17.0-windows-x86.msi /qn /norestart寫入記錄檔
msiexec /i vectorcraft-0.17.0-windows-x86.msi /qn /norestart /l*v "%TEMP%\vectorcraft-install.log"解除安裝
msiexec /x {30CBA989-15BD-43C0-8F69-4B90F47B94BE} /qn /norestart- MSI產品代碼
- {30CBA989-15BD-43C0-8F69-4B90F47B94BE}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{30CBA989-15BD-43C0-8F69-4B90F47B94BE}
- UpgradeCode
- {601C6437-08AE-4645-ADCC-27F036C2EA2F}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-vectorcraft.ps1
$url = 'https://github.com/storytold/vectorcraft/releases/download/v0.17.0/vectorcraft-0.17.0-windows-x64.msi'
$sha256 = '861F4E9FE943DACDDFD30BC6512A20A4DB2FBC554A6DAA4101595C2FC85D11C1'
$file = Join-Path $env:TEMP 'vectorcraft-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-vectorcraft.ps1
$url = 'https://github.com/storytold/vectorcraft/releases/download/v0.17.0/vectorcraft-0.17.0-windows-arm64.msi'
$sha256 = 'F9E67F11DA9679780510A7ACC595E59057DC446781A7D41AE6E808D721FD0729'
$file = Join-Path $env:TEMP 'vectorcraft-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-vectorcraft.ps1
$url = 'https://github.com/storytold/vectorcraft/releases/download/v0.17.0/vectorcraft-0.17.0-windows-x86.msi'
$sha256 = '1942BE2F2C4A88A56E2292FB2B67AE341184A9981D25D140EB67A302616636A0'
$file = Join-Path $env:TEMP 'vectorcraft-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