Ordres per instal·lar gam 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 GAM-Team.gam -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id GAM-Team.gam -e --silentwinget uninstall --id GAM-Team.gam -e --silentPer instal·lador
64 bits · EXE (Inno Setup) · Tots els usuaris · en-US
Instal·lació silenciosa
gam-7.49.00-windows-x86_64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
gam-7.49.00-windows-x86_64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\gam"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{D86B52B2-EFE9-4F9D-8BA3-9D84B9B2D319}_is1
- Carpeta d’instal·lació
- %SystemDrive%\GAM7
- DisplayVersion
- 7.49.00
ARM64 · EXE (Inno Setup) · Tots els usuaris · en-US
Instal·lació silenciosa
gam-7.49.00-windows-arm64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
gam-7.49.00-windows-arm64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\gam"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{D86B52B2-EFE9-4F9D-8BA3-9D84B9B2D319}_is1
- Carpeta d’instal·lació
- %SystemDrive%\GAM7
- DisplayVersion
- 7.49.00
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-gam.ps1
$url = 'https://github.com/GAM-team/GAM/releases/download/v7.49.00/gam-7.49.00-windows-x86_64.exe'
$sha256 = 'EE4D7E2C3BABAF7C124BA06F490C8836EA1B57D2728AA958671806834BE5B4D8'
$file = Join-Path $env:TEMP 'gam-7.49.00-windows-x86_64.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-gam.ps1
$url = 'https://github.com/GAM-team/GAM/releases/download/v7.49.00/gam-7.49.00-windows-arm64.exe'
$sha256 = '58705A97AA6BE9CA4E345C7F015D69ECB392A0AE03A77419C3BF5C361DEA2430'
$file = Join-Path $env:TEMP 'gam-7.49.00-windows-arm64.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