免互動安裝Invantive Data Loader、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Invantive.InvantiveDataLoader -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Invantive.InvantiveDataLoader -e --silentwinget uninstall --id Invantive.InvantiveDataLoader -e --silent依安裝檔
64位元 · MSI · 所有使用者
靜默安裝
msiexec /i "Invantive Data Loader-current.msi" /qn /norestart寫入記錄檔
msiexec /i "Invantive Data Loader-current.msi" /qn /norestart /l*v "%TEMP%\invantive-data-loader-install.log"解除安裝
msiexec /x {8484118A-71B1-4ED1-BED8-4D42B001EB00} /qn /norestart- MSI產品代碼
- {8484118A-71B1-4ED1-BED8-4D42B001EB00}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8484118A-71B1-4ED1-BED8-4D42B001EB00}
- UpgradeCode
- {8484118A-71B1-4ED1-BED8-4D4200001B00}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-invantive-data-loader.ps1
$url = 'https://download.invantive.eu/current/Invantive%20Data%20Loader-current.msi'
$sha256 = 'E221FFA9EFCE6398E5196A33A0B12A33F52495D59F2F0DCE8BA829C2AD74F3CE'
$file = Join-Path $env:TEMP 'Invantive Data Loader-current.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