免互動安裝Text Editor Pro、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id LasseMarkusRautiainen.TextEditorPro -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id LasseMarkusRautiainen.TextEditorPro -e --silentwinget uninstall --id LasseMarkusRautiainen.TextEditorPro -e --silent依安裝檔
64位元 · EXE(Inno Setup) · 所有使用者
靜默安裝
TextEditorPro64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自訂安裝資料夾
TextEditorPro64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\text-editor-pro"- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{FC8AD371-A765-4E22-B25F-D5914D7193F1}}_is1
64位元 · MSI · 所有使用者
靜默安裝
msiexec /i TextEditorPro64.msi /qn /norestart寫入記錄檔
msiexec /i TextEditorPro64.msi /qn /norestart /l*v "%TEMP%\text-editor-pro-install.log"解除安裝
msiexec /x {BB008463-28B6-4B7C-89F6-0A870DDA940A} /qn /norestart- MSI產品代碼
- {BB008463-28B6-4B7C-89F6-0A870DDA940A}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{BB008463-28B6-4B7C-89F6-0A870DDA940A}
- UpgradeCode
- {FCD58DD3-3A13-408E-944F-D4A0826C866C}
32位元 · EXE(Inno Setup) · 所有使用者
靜默安裝
TextEditorPro32.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自訂安裝資料夾
TextEditorPro32.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\text-editor-pro"- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{FC8AD371-A765-4E22-B25F-D5914D7193F1}}_is1
32位元 · MSI · 所有使用者
靜默安裝
msiexec /i TextEditorPro32.msi /qn /norestart寫入記錄檔
msiexec /i TextEditorPro32.msi /qn /norestart /l*v "%TEMP%\text-editor-pro-install.log"解除安裝
msiexec /x {4A43059D-B573-4EDF-8510-291F7D13CA74} /qn /norestart- MSI產品代碼
- {4A43059D-B573-4EDF-8510-291F7D13CA74}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{4A43059D-B573-4EDF-8510-291F7D13CA74}
- UpgradeCode
- {FCD58DD3-3A13-408E-944F-D4A0826C866C}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-text-editor-pro.ps1
$url = 'https://www.texteditor.pro/downloads/TextEditorPro64.exe'
$sha256 = 'C760FBC76F1DA051F3BBA2CA81E65221917B5D9741B7C11F98CBB66C58F05F44'
$file = Join-Path $env:TEMP 'TextEditorPro64.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-text-editor-pro.ps1
$url = 'https://www.texteditor.pro/downloads/TextEditorPro64.msi'
$sha256 = 'C1612908A2A484B9B453C81EAE0ADDD19C22D77269E6AB188295CCC8E61D6E61'
$file = Join-Path $env:TEMP 'TextEditorPro64.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-text-editor-pro.ps1
$url = 'https://www.texteditor.pro/downloads/TextEditorPro32.exe'
$sha256 = '620D4C24EE77CE6A7B37863886FFCA8931FC579C4E0417B759363A39F45248DA'
$file = Join-Path $env:TEMP 'TextEditorPro32.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-text-editor-pro.ps1
$url = 'https://www.texteditor.pro/downloads/TextEditorPro32.msi'
$sha256 = 'F1BDD9ECB18D38F6C5FF4B94E6A7B1BBC5680782B7C21BB83BEEDB64512D49DC'
$file = Join-Path $env:TEMP 'TextEditorPro32.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