Opdragte om GitHub CLI sonder vrae te installeer, weer te verwyder en vanuit ontplooiingsgereedskap op te spoor. ’n Opdrag word net gewys as dit seker is: uit die manifes of die gedokumenteerde verstek van die installeertegnologie.
Verwante gids: Skakelaars vir stil installasie: MSI, NSIS, Inno Setup · Deïnstalleer ’n program via die register of PowerShell
Met winget
PowerShell
winget install --id GitHub.cli -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id GitHub.cli -e --silentwinget uninstall --id GitHub.cli -e --silentVolgens installeerder
64-bis · MSI · Alle gebruikers
Stil installasie
msiexec /i gh_2.103.3_windows_amd64.msi /qn /norestartSkryf ’n log
msiexec /i gh_2.103.3_windows_amd64.msi /qn /norestart /l*v "%TEMP%\github-cli-install.log"Deïnstalleer
msiexec /x {8B5049E4-77C4-4637-825C-77C6C1080778} /qn /norestart- MSI-produkkode
- {8B5049E4-77C4-4637-825C-77C6C1080778}
- Deïnstalleer-registersleutel
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8B5049E4-77C4-4637-825C-77C6C1080778}
- UpgradeCode
- {8CFB9531-B959-4E1B-AA2E-4AF0FFCC4AF4}
- Installeerlêergids
- %ProgramFiles%\GitHub CLI
64-bis · ZIP
Geen installasie nodig nie (draagbaar)
ARM64 · MSI · Alle gebruikers
Stil installasie
msiexec /i gh_2.103.3_windows_arm64.msi /qn /norestartSkryf ’n log
msiexec /i gh_2.103.3_windows_arm64.msi /qn /norestart /l*v "%TEMP%\github-cli-install.log"Deïnstalleer
msiexec /x {356C78A3-D8F8-486A-B686-217AFBC67511} /qn /norestart- MSI-produkkode
- {356C78A3-D8F8-486A-B686-217AFBC67511}
- Deïnstalleer-registersleutel
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{356C78A3-D8F8-486A-B686-217AFBC67511}
- UpgradeCode
- {5D15E95C-F979-41B0-826C-C33C8CB5A7EB}
- Installeerlêergids
- %ProgramFiles%\GitHub CLI
ARM64 · ZIP
Geen installasie nodig nie (draagbaar)
32-bis · MSI · Alle gebruikers
Stil installasie
msiexec /i gh_2.103.3_windows_386.msi /qn /norestartSkryf ’n log
msiexec /i gh_2.103.3_windows_386.msi /qn /norestart /l*v "%TEMP%\github-cli-install.log"Deïnstalleer
msiexec /x {2643C99A-0858-411A-BD5A-BBF06DC0EF78} /qn /norestart- MSI-produkkode
- {2643C99A-0858-411A-BD5A-BBF06DC0EF78}
- Deïnstalleer-registersleutel
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{2643C99A-0858-411A-BD5A-BBF06DC0EF78}
- UpgradeCode
- {767EC5D2-C8F0-4912-9901-45E21F59A284}
- Installeerlêergids
- %ProgramFiles(x86)%\GitHub CLI
32-bis · ZIP
Geen installasie nodig nie (draagbaar)
PowerShell: aflaai, nagaan, installeer
Laai die amptelike lêer af, gaan die SHA256 na en installeer dit stil.
install-github-cli.ps1
$url = 'https://github.com/cli/cli/releases/download/v2.103.3/gh_2.103.3_windows_amd64.msi'
$sha256 = '5073112B7ABB5FFBBA24B76AEE7E89269AF531218C0A42751F5F0BFB6440C2CC'
$file = Join-Path $env:TEMP 'gh_2.103.3_windows_amd64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-github-cli.ps1
$url = 'https://github.com/cli/cli/releases/download/v2.103.3/gh_2.103.3_windows_arm64.msi'
$sha256 = '751F6CD2DAFFF9340822BF10C910F6DAEC3896638C030FCC8DDA8822129E4780'
$file = Join-Path $env:TEMP 'gh_2.103.3_windows_arm64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-github-cli.ps1
$url = 'https://github.com/cli/cli/releases/download/v2.103.3/gh_2.103.3_windows_386.msi'
$sha256 = 'B98702030EF20FA21F17675A8D67C4343C284C69AC6D42C418806999B80C7FE5'
$file = Join-Path $env:TEMP 'gh_2.103.3_windows_386.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait