Ordres per instal·lar GPAC 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 GPAC.GPAC -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id GPAC.GPAC -e --silentwinget uninstall --id GPAC.GPAC -e --silentPer instal·lador
64 bits · EXE (NSIS) · Tots els usuaris
Instal·lació silenciosa
gpac-26.07-rev0-ga07cbfff-master-x64.exe /SUna altra carpeta
gpac-26.07-rev0-ga07cbfff-master-x64.exe /S /D=C:\Apps\gpac- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\GPAC
32 bits · EXE (NSIS) · Tots els usuaris
Instal·lació silenciosa
gpac-26.07-rev0-ga07cbfff-master-win32.exe /SUna altra carpeta
gpac-26.07-rev0-ga07cbfff-master-win32.exe /S /D=C:\Apps\gpac- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\GPAC
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-gpac.ps1
$url = 'https://download.tsi.telecom-paristech.fr/gpac/release/26.07/gpac-26.07-rev0-ga07cbfff-master-x64.exe'
$sha256 = 'F4503B9B11453FDE2908A2EA2A096D673B3A3037B15508986D45DDBF24B50CFB'
$file = Join-Path $env:TEMP 'gpac-26.07-rev0-ga07cbfff-master-x64.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-gpac.ps1
$url = 'https://download.tsi.telecom-paristech.fr/gpac/release/26.07/gpac-26.07-rev0-ga07cbfff-master-win32.exe'
$sha256 = 'E83329645C6A5C80D8FCF4AF89DD5A36BF9D64975886ACFD7C4B2BCEA3ADF04A'
$file = Join-Path $env:TEMP 'gpac-26.07-rev0-ga07cbfff-master-win32.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