Commands for installing PC Clone without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id Huawei.PCClone -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Huawei.PCClone -e --silentwinget uninstall --id Huawei.PCClone -e --silentBy installer
64-bit · EXE (NSIS) · All users
Silent install
public /SCustom folder
public /S /D=C:\Apps\pc-clone- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\PCMigration
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-pc-clone.ps1
$url = 'https://consumer-tkb.huawei.com/weknow/servlet/download/public?contextNo=W00043394&view=true'
$sha256 = '4D9FF054D90770260D05E3BE20483DB147F0E98CF06180AB8EEF57C995331F11'
$file = Join-Path $env:TEMP 'public'
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