免互動安裝Fortify、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id PeculiarVentures.Fortify -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id PeculiarVentures.Fortify -e --silentwinget uninstall --id PeculiarVentures.Fortify -e --silent依安裝檔
64位元 · MSI · 所有使用者 · de-DE
靜默安裝
msiexec /i Fortify_2.1.0_x64_de-DE.msi /qn /norestart寫入記錄檔
msiexec /i Fortify_2.1.0_x64_de-DE.msi /qn /norestart /l*v "%TEMP%\fortify-install.log"解除安裝
msiexec /x {761F1AD8-395C-44BA-AF9C-7D452592669C} /qn /norestart- MSI產品代碼
- {761F1AD8-395C-44BA-AF9C-7D452592669C}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{761F1AD8-395C-44BA-AF9C-7D452592669C}
- UpgradeCode
- {AB87B5E7-17F6-5394-8A15-9EE6AA6B06B8}
64位元 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i Fortify_2.1.0_x64_en-US.msi /qn /norestart寫入記錄檔
msiexec /i Fortify_2.1.0_x64_en-US.msi /qn /norestart /l*v "%TEMP%\fortify-install.log"解除安裝
msiexec /x {300CD9D8-49BE-4914-B157-A48962F42386} /qn /norestart- MSI產品代碼
- {300CD9D8-49BE-4914-B157-A48962F42386}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{300CD9D8-49BE-4914-B157-A48962F42386}
- UpgradeCode
- {AB87B5E7-17F6-5394-8A15-9EE6AA6B06B8}
32位元 · MSI · 所有使用者 · de-DE
靜默安裝
msiexec /i Fortify_2.1.0_x86_de-DE.msi /qn /norestart寫入記錄檔
msiexec /i Fortify_2.1.0_x86_de-DE.msi /qn /norestart /l*v "%TEMP%\fortify-install.log"解除安裝
msiexec /x {F4FA3431-5C50-413A-B1AB-CD775E43A2FE} /qn /norestart- MSI產品代碼
- {F4FA3431-5C50-413A-B1AB-CD775E43A2FE}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{F4FA3431-5C50-413A-B1AB-CD775E43A2FE}
- UpgradeCode
- {AB87B5E7-17F6-5394-8A15-9EE6AA6B06B8}
32位元 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i Fortify_2.1.0_x86_en-US.msi /qn /norestart寫入記錄檔
msiexec /i Fortify_2.1.0_x86_en-US.msi /qn /norestart /l*v "%TEMP%\fortify-install.log"解除安裝
msiexec /x {F55A7A26-AAA7-48AC-BCEF-97B217495523} /qn /norestart- MSI產品代碼
- {F55A7A26-AAA7-48AC-BCEF-97B217495523}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{F55A7A26-AAA7-48AC-BCEF-97B217495523}
- UpgradeCode
- {AB87B5E7-17F6-5394-8A15-9EE6AA6B06B8}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-fortify.ps1
$url = 'https://github.com/PeculiarVentures/fortify-releases/releases/download/v2.1.0/Fortify_2.1.0_x64_de-DE.msi'
$sha256 = '75A13A869AC5BFE79F6185288F72E23687256926173DE17E6E80597A28278C51'
$file = Join-Path $env:TEMP 'Fortify_2.1.0_x64_de-DE.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-fortify.ps1
$url = 'https://github.com/PeculiarVentures/fortify-releases/releases/download/v2.1.0/Fortify_2.1.0_x64_en-US.msi'
$sha256 = '57DAEC289BA8298D591427014E8EF3339D019907A207282BA61393FD271DF04D'
$file = Join-Path $env:TEMP 'Fortify_2.1.0_x64_en-US.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-fortify.ps1
$url = 'https://github.com/PeculiarVentures/fortify-releases/releases/download/v2.1.0/Fortify_2.1.0_x86_de-DE.msi'
$sha256 = '7808F3C8A6FB9258F0B981F2D28EDF7C39ED72CFBC736D91829BAE91A1085EFB'
$file = Join-Path $env:TEMP 'Fortify_2.1.0_x86_de-DE.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-fortify.ps1
$url = 'https://github.com/PeculiarVentures/fortify-releases/releases/download/v2.1.0/Fortify_2.1.0_x86_en-US.msi'
$sha256 = '0B0662FE42FBC9DBAB955FA5768223647DA9177B59C740A6C22431B9FDCAEBAA'
$file = Join-Path $env:TEMP 'Fortify_2.1.0_x86_en-US.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