Ordres per instal·lar OpenCodex 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
winget install --id RyensX.OpenCodex -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id RyensX.OpenCodex -e --silentwinget uninstall --id RyensX.OpenCodex -e --silentPer instal·lador
64 bits · EXE (NSIS) · Usuari actual
OpenCodex.Setup.2.1.0.exe /SOpenCodex.Setup.2.1.0.exe /S /D=C:\Apps\opencodex- Clau de desinstal·lació al registre
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ce0e88bf-c4e1-5d5f-bd8c-44770c64a07a
64 bits · EXE (NSIS) · Tots els usuaris
OpenCodex.Setup.2.1.0.exe /SOpenCodex.Setup.2.1.0.exe /S /D=C:\Apps\opencodex- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ce0e88bf-c4e1-5d5f-bd8c-44770c64a07a
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
$url = 'https://github.com/RyensX/OpenCodex/releases/download/2.1.0/OpenCodex.Setup.2.1.0.exe'
$sha256 = '2A910AFF1D359CEC2BF16545AC0C593F24D134805BF60EC73C35E97754043593'
$file = Join-Path $env:TEMP 'OpenCodex.Setup.2.1.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 '/S' -Wait $url = 'https://github.com/RyensX/OpenCodex/releases/download/2.1.0/OpenCodex.Setup.2.1.0.exe'
$sha256 = '2A910AFF1D359CEC2BF16545AC0C593F24D134805BF60EC73C35E97754043593'
$file = Join-Path $env:TEMP 'OpenCodex.Setup.2.1.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 '/S' -Wait