免互動安裝TrguiNG、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id OpenScopeProject.TrguiNG -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id OpenScopeProject.TrguiNG -e --silentwinget uninstall --id OpenScopeProject.TrguiNG -e --silent依安裝檔
64位元 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i TrguiNG_1.5.1_x64_en-US.msi /qn /norestart寫入記錄檔
msiexec /i TrguiNG_1.5.1_x64_en-US.msi /qn /norestart /l*v "%TEMP%\trguing-install.log"解除安裝
msiexec /x {8CAF311C-82A2-4F5D-A27E-CFC139E67D32} /qn /norestart- MSI產品代碼
- {8CAF311C-82A2-4F5D-A27E-CFC139E67D32}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8CAF311C-82A2-4F5D-A27E-CFC139E67D32}
- UpgradeCode
- {6F4ACBE1-EAE2-5F15-B989-AA75D977D886}
- 安裝資料夾
- %ProgramFiles%\TrguiNG
ARM64 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i TrguiNG_1.5.1_arm64_en-US.msi /qn /norestart寫入記錄檔
msiexec /i TrguiNG_1.5.1_arm64_en-US.msi /qn /norestart /l*v "%TEMP%\trguing-install.log"解除安裝
msiexec /x {8CAF311C-82A2-4F5D-A27E-CFC139E67D32} /qn /norestart- MSI產品代碼
- {8CAF311C-82A2-4F5D-A27E-CFC139E67D32}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8CAF311C-82A2-4F5D-A27E-CFC139E67D32}
- UpgradeCode
- {6F4ACBE1-EAE2-5F15-B989-AA75D977D886}
- 安裝資料夾
- %ProgramFiles%\TrguiNG
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-trguing.ps1
$url = 'https://github.com/openscopeproject/TrguiNG/releases/download/v1.5.1/TrguiNG_1.5.1_x64_en-US.msi'
$sha256 = 'A07893ABD598612F8D0F94123F08DF1A3D8F3FE7128FF6136E8CF5FB530B1525'
$file = Join-Path $env:TEMP 'TrguiNG_1.5.1_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-trguing.ps1
$url = 'https://github.com/openscopeproject/TrguiNG/releases/download/v1.5.1/TrguiNG_1.5.1_arm64_en-US.msi'
$sha256 = 'E25129456991FABFADB88974804BF8568825B696188B0945AC0868718D82BE20'
$file = Join-Path $env:TEMP 'TrguiNG_1.5.1_arm64_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