免互動安裝MrCode、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id zokugun.MrCode -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id zokugun.MrCode -e --silentwinget uninstall --id zokugun.MrCode -e --silent依安裝檔
64位元 · EXE(Inno Setup) · 僅目前使用者
靜默安裝
MrCodeUserSetup-x64-1.82.0.23253.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自訂安裝資料夾
MrCodeUserSetup-x64-1.82.0.23253.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\mrcode"64位元 · EXE(Inno Setup) · 所有使用者
靜默安裝
MrCodeSetup-x64-1.82.0.23253.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自訂安裝資料夾
MrCodeSetup-x64-1.82.0.23253.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\mrcode"ARM64 · EXE(Inno Setup) · 僅目前使用者
靜默安裝
MrCodeUserSetup-arm64-1.82.0.23253.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自訂安裝資料夾
MrCodeUserSetup-arm64-1.82.0.23253.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\mrcode"ARM64 · EXE(Inno Setup) · 所有使用者
靜默安裝
MrCodeSetup-arm64-1.82.0.23253.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自訂安裝資料夾
MrCodeSetup-arm64-1.82.0.23253.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\mrcode"32位元 · EXE(Inno Setup) · 僅目前使用者
靜默安裝
MrCodeUserSetup-ia32-1.82.0.23253.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自訂安裝資料夾
MrCodeUserSetup-ia32-1.82.0.23253.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\mrcode"32位元 · EXE(Inno Setup) · 所有使用者
靜默安裝
MrCodeSetup-ia32-1.82.0.23253.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自訂安裝資料夾
MrCodeSetup-ia32-1.82.0.23253.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\mrcode"PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-mrcode.ps1
$url = 'https://github.com/zokugun/MrCode/releases/download/1.82.0.23253/MrCodeUserSetup-x64-1.82.0.23253.exe'
$sha256 = '3762A9181143EF59A9874EDAE9CBBE52DDB61C65E208E06198A0447164F1DEC6'
$file = Join-Path $env:TEMP 'MrCodeUserSetup-x64-1.82.0.23253.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-mrcode.ps1
$url = 'https://github.com/zokugun/MrCode/releases/download/1.82.0.23253/MrCodeSetup-x64-1.82.0.23253.exe'
$sha256 = '9BB0835D2F8F1F0EF8FB489B3040471BC16676DCE1670BAA8C7876A71D73EF06'
$file = Join-Path $env:TEMP 'MrCodeSetup-x64-1.82.0.23253.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-mrcode.ps1
$url = 'https://github.com/zokugun/MrCode/releases/download/1.82.0.23253/MrCodeUserSetup-arm64-1.82.0.23253.exe'
$sha256 = '4A4E3A127FE09E7122F8B70576E9C788DE12B399232F504F8F82423C50A6FD60'
$file = Join-Path $env:TEMP 'MrCodeUserSetup-arm64-1.82.0.23253.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-mrcode.ps1
$url = 'https://github.com/zokugun/MrCode/releases/download/1.82.0.23253/MrCodeSetup-arm64-1.82.0.23253.exe'
$sha256 = '60D7A3B5699378A797B51B54744071F187B4C9BD72B49F56B6E44A6851228ECB'
$file = Join-Path $env:TEMP 'MrCodeSetup-arm64-1.82.0.23253.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-mrcode.ps1
$url = 'https://github.com/zokugun/MrCode/releases/download/1.82.0.23253/MrCodeUserSetup-ia32-1.82.0.23253.exe'
$sha256 = '14BBACA3394E370D40645675CA8BD5A4DDB3548C87C66374BDFE49BADCEE7C44'
$file = Join-Path $env:TEMP 'MrCodeUserSetup-ia32-1.82.0.23253.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-mrcode.ps1
$url = 'https://github.com/zokugun/MrCode/releases/download/1.82.0.23253/MrCodeSetup-ia32-1.82.0.23253.exe'
$sha256 = '76E205F8E98380419D475A1DA2836F4B3055A614DECC01F6A8E7310ACBAF319E'
$file = Join-Path $env:TEMP 'MrCodeSetup-ia32-1.82.0.23253.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