Ordres per instal·lar Path Copy Copy 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 CLechasseur.PathCopyCopy -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id CLechasseur.PathCopyCopy -e --silentwinget uninstall --id CLechasseur.PathCopyCopy -e --silentPer instal·lador
32 bits · EXE (Inno Setup) · Usuari actual · en-US
Instal·lació silenciosa
PathCopyCopy20.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
PathCopyCopy20.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\path-copy-copy"32 bits · EXE (Inno Setup) · Tots els usuaris · en-US
Instal·lació silenciosa
PathCopyCopy20.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
PathCopyCopy20.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\path-copy-copy"PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-path-copy-copy.ps1
$url = 'https://github.com/clechasseur/pathcopycopy/releases/download/v20.0/PathCopyCopy20.0.exe'
$sha256 = '1CD49BDD01D4543A3022A09BC4F638A6FAA1637F5AA1664E2C456A02C42DC3E1'
$file = Join-Path $env:TEMP 'PathCopyCopy20.0.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-path-copy-copy.ps1
$url = 'https://github.com/clechasseur/pathcopycopy/releases/download/v20.0/PathCopyCopy20.0.exe'
$sha256 = '1CD49BDD01D4543A3022A09BC4F638A6FAA1637F5AA1664E2C456A02C42DC3E1'
$file = Join-Path $env:TEMP 'PathCopyCopy20.0.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