免互動安裝fio、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id fio.fio -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id fio.fio -e --silentwinget uninstall --id fio.fio -e --silent依安裝檔
64位元 · MSI · 所有使用者
靜默安裝
msiexec /i fio-3.43-x64.msi /qn /norestart寫入記錄檔
msiexec /i fio-3.43-x64.msi /qn /norestart /l*v "%TEMP%\fio-install.log"解除安裝
msiexec /x {07BBA0A0-BCAD-4CF3-9436-58E5A65B2ECC} /qn /norestart- MSI產品代碼
- {07BBA0A0-BCAD-4CF3-9436-58E5A65B2ECC}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{07BBA0A0-BCAD-4CF3-9436-58E5A65B2ECC}
- UpgradeCode
- {2338A332-5511-43CF-B9BD-5C60496CCFCC}
32位元 · MSI · 所有使用者
靜默安裝
msiexec /i fio-3.43-x86.msi /qn /norestart寫入記錄檔
msiexec /i fio-3.43-x86.msi /qn /norestart /l*v "%TEMP%\fio-install.log"解除安裝
msiexec /x {3CF1A7A8-60DC-40E6-8E04-7FE1BBEF8586} /qn /norestart- MSI產品代碼
- {3CF1A7A8-60DC-40E6-8E04-7FE1BBEF8586}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{3CF1A7A8-60DC-40E6-8E04-7FE1BBEF8586}
- UpgradeCode
- {2338A332-5511-43CF-B9BD-5C60496CCFCC}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-fio.ps1
$url = 'https://github.com/axboe/fio/releases/download/fio-3.43/fio-3.43-x64.msi'
$sha256 = '8299E6E6FBC024D3B74AA1CE62FB94EF6960B45629FBFA678B720834B6EB34AA'
$file = Join-Path $env:TEMP 'fio-3.43-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-fio.ps1
$url = 'https://github.com/axboe/fio/releases/download/fio-3.43/fio-3.43-x86.msi'
$sha256 = '7E8AC41E3439FAF847CFF134A8AE65998BBB2595126C91F0B266D332774344AE'
$file = Join-Path $env:TEMP 'fio-3.43-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