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