Opdragte om CommandUI sonder vrae te installeer, weer te verwyder en vanuit ontplooiingsgereedskap op te spoor. ’n Opdrag word net gewys as dit seker is: uit die manifes of die gedokumenteerde verstek van die installeertegnologie.
Verwante gids: Skakelaars vir stil installasie: MSI, NSIS, Inno Setup · Deïnstalleer ’n program via die register of PowerShell
Met winget
PowerShell
winget install --id mcp-tool-shop.CommandUI -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id mcp-tool-shop.CommandUI -e --silentwinget uninstall --id mcp-tool-shop.CommandUI -e --silentVolgens installeerder
64-bis · EXE (NSIS) · Huidige gebruiker
Stil installasie
CommandUI_1.0.2_x64-setup.exe /SEie lêergids
CommandUI_1.0.2_x64-setup.exe /S /D=C:\Apps\commandui- Deïnstalleer-registersleutel
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\CommandUI
- Installeerlêergids
- %LocalAppData%\CommandUI
64-bis · MSI · Alle gebruikers
Stil installasie
msiexec /i CommandUI_1.0.2_x64_en-US.msi /qn /norestartSkryf ’n log
msiexec /i CommandUI_1.0.2_x64_en-US.msi /qn /norestart /l*v "%TEMP%\commandui-install.log"Deïnstalleer
msiexec /x {C7737DCC-9D00-4566-B299-45436749E472} /qn /norestart- MSI-produkkode
- {C7737DCC-9D00-4566-B299-45436749E472}
- Deïnstalleer-registersleutel
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{C7737DCC-9D00-4566-B299-45436749E472}
- UpgradeCode
- {C668049B-1D1C-596E-87C9-AF9CED4CE3EE}
- Installeerlêergids
- %ProgramFiles%\CommandUI
PowerShell: aflaai, nagaan, installeer
Laai die amptelike lêer af, gaan die SHA256 na en installeer dit stil.
install-commandui.ps1
$url = 'https://github.com/mcp-tool-shop-org/commandui/releases/download/v1.0.2/CommandUI_1.0.2_x64-setup.exe'
$sha256 = '099183040CDBFFBFBB477A6F32F085D88CFDCE8C37370B2CB99E761530A13D90'
$file = Join-Path $env:TEMP 'CommandUI_1.0.2_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 '/S' -Wait install-commandui.ps1
$url = 'https://github.com/mcp-tool-shop-org/commandui/releases/download/v1.0.2/CommandUI_1.0.2_x64_en-US.msi'
$sha256 = 'E28C941B3C4139F880199A2FB88C50A085C3360ED3E48436664C4951142F6656'
$file = Join-Path $env:TEMP 'CommandUI_1.0.2_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