免互動安裝Skywire、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Skycoin.Skywire -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Skycoin.Skywire -e --silentwinget uninstall --id Skycoin.Skywire -e --silent依安裝檔
64位元 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i skywire-installer-v1.3.34-windows-amd64.msi /qn /norestart寫入記錄檔
msiexec /i skywire-installer-v1.3.34-windows-amd64.msi /qn /norestart /l*v "%TEMP%\skywire-install.log"解除安裝
msiexec /x {4366E055-A8F2-4107-A871-07AB187AAB10} /qn /norestart- MSI產品代碼
- {4366E055-A8F2-4107-A871-07AB187AAB10}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{4366E055-A8F2-4107-A871-07AB187AAB10}
- UpgradeCode
- {CD7955BC-304E-470F-9C24-EB9F429A8085}
- 安裝資料夾
- %ProgramFiles%\Skywire
32位元 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i skywire-installer-v1.3.34-windows-386.msi /qn /norestart寫入記錄檔
msiexec /i skywire-installer-v1.3.34-windows-386.msi /qn /norestart /l*v "%TEMP%\skywire-install.log"解除安裝
msiexec /x {17926BF6-F9D3-4D0E-8BFE-4E552C59F734} /qn /norestart- MSI產品代碼
- {17926BF6-F9D3-4D0E-8BFE-4E552C59F734}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{17926BF6-F9D3-4D0E-8BFE-4E552C59F734}
- UpgradeCode
- {CD7955BC-304E-470F-9C24-EB9F429A8085}
- 安裝資料夾
- %ProgramFiles(x86)%\Skywire
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-skywire.ps1
$url = 'https://github.com/skycoin/skywire/releases/download/v1.3.34/skywire-installer-v1.3.34-windows-amd64.msi'
$sha256 = '4A4072F9CC17460BE97ED968761AE72B56B2444A7E007D16AE8759B7C96A3A18'
$file = Join-Path $env:TEMP 'skywire-installer-v1.3.34-windows-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-skywire.ps1
$url = 'https://github.com/skycoin/skywire/releases/download/v1.3.34/skywire-installer-v1.3.34-windows-386.msi'
$sha256 = '037ACFEE4415C7EF842803FA6BCCB771DF050B61077DE582EDC4B92FA36F9F09'
$file = Join-Path $env:TEMP 'skywire-installer-v1.3.34-windows-386.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