Ordres per instal·lar VS Code Config Helper sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb winget
PowerShell
winget install --id Guyutongxue.Vscch -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Guyutongxue.Vscch -e --silentwinget uninstall --id Guyutongxue.Vscch -e --silentPer instal·lador
64 bits · MSI · Tots els usuaris · zh
Instal·lació silenciosa
msiexec /i vscch_4.0.10_x64_zh-CN.msi /qn /norestartDesar un registre
msiexec /i vscch_4.0.10_x64_zh-CN.msi /qn /norestart /l*v "%TEMP%\vs-code-config-helper-install.log"Desinstal·lar
msiexec /x {9C0BE524-2C2E-441F-911A-66D7A5162594} /qn /norestart- Codi de producte MSI
- {9C0BE524-2C2E-441F-911A-66D7A5162594}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9C0BE524-2C2E-441F-911A-66D7A5162594}
- UpgradeCode
- {D2CDA1BB-8820-5305-9E19-FBF5FC5D3B54}
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-vs-code-config-helper.ps1
$url = 'https://github.com/VSCodeConfigHelper/v4/releases/download/v4.0.10/vscch_4.0.10_x64_zh-CN.msi'
$sha256 = 'F4CF948C10568CEB57B4EFBC90D63EB8F227AB7040E72FEE76A835CA76FDA03E'
$file = Join-Path $env:TEMP 'vscch_4.0.10_x64_zh-CN.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