Kommandon för att installera OpenCodex utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med 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 installationsfil
64-bitars · EXE (NSIS) · Aktuell användare
OpenCodex.Setup.2.1.0.exe /SOpenCodex.Setup.2.1.0.exe /S /D=C:\Apps\opencodex- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ce0e88bf-c4e1-5d5f-bd8c-44770c64a07a
64-bitars · EXE (NSIS) · Alla användare
OpenCodex.Setup.2.1.0.exe /SOpenCodex.Setup.2.1.0.exe /S /D=C:\Apps\opencodex- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ce0e88bf-c4e1-5d5f-bd8c-44770c64a07a
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
$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