Silent Un/Install GitHub Desktop windows command line #144212
Replies: 12 comments 3 replies
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
|
Hi there! Yes, you can perform a silent installation and silent uninstallation of GitHub Desktop for Windows. Here’s how you can do it: Silent Installation for All Users
Silent Uninstallation
Hope this helps! Let me know if you run into any issues. 😊 |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
|
To the author of the action that is trying to label things as dormant, Simply don't be that rude, thanks! |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Deploying GitHub Desktop silently for all users on Windows can be a bit tricky because of how GitHub Desktop is designed to install. By default, it often installs to the user's Here's a breakdown of the typical approaches for silent installation and uninstallation for all users: Silent Install GitHub Desktop for All UsersGitHub provides an MSI (Windows Installer) package that is designed for machine-wide installations. This MSI typically installs a "deployment tool" in 1. Download the MSI Installer: 2. Silent Installation Command (using MSI): Once you have the MSI file (e.g., msiexec.exe /i "GitHubDesktopSetup-x64.msi" /qn /norestart
Explanation of the MSI Behavior for All Users: The MSI for GitHub Desktop typically installs a Important Considerations for "All Users":
Alternative (using the EXE installer, less recommended for true "All Users" but often works for scripting): While the MSI is preferred for enterprise deployments, some sources mention using the GitHubDesktopSetup-x64.exe /allusers /silent /norestart
This method might still lead to the application being installed in Silent Uninstall GitHub DesktopSilent uninstallation can be a bit more complex, as GitHub Desktop's update mechanism (Squirrel.Windows) often manages its own uninstallation. 1. Locate the The uninstaller for GitHub Desktop is typically located within the user's local application data, specifically in the GitHub Desktop update directory. The common path is: 2. Silent Uninstallation Command: "%LocalAppData%\GitHubDesktop\Update.exe" --uninstall --silent
Important Notes for Uninstall:
Example (Conceptual PowerShell for multi-user uninstall, requires administrative privileges): # This is a conceptual script and might need adjustments based on your environment
$Users = Get-ChildItem "C:\Users" -Exclude "Public", "Default", "Default User", "All Users"
foreach ($User in $Users) {
$UserProfilePath = $User.FullName
$GitHubDesktopUpdateExe = Join-Path $UserProfilePath "AppData\Local\GitHubDesktop\Update.exe"
if (Test-Path $GitHubDesktopUpdateExe) {
Write-Host "Attempting silent uninstall for user: $($User.Name)"
Start-Process -FilePath $GitHubDesktopUpdateExe -ArgumentList "--uninstall --silent" -Wait -NoNewWindow
} else {
Write-Host "GitHub Desktop not found for user: $($User.Name)"
}
}
# If you used the MSI to deploy, you might also need to uninstall the machine-wide installer:
# You'd need to find the specific ProductCode for the installed MSI.
# Example: msiexec.exe /x "{YOUR_PRODUCT_CODE}" /qnIn summary: For silent installation for all users, leverage the MSI installer ( For silent uninstallation, the most common method is to run |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
|
Of course! This is a common requirement for IT administrators deploying software in an enterprise environment. Here’s how to silently install and uninstall GitHub Desktop for Windows for all users. Silent Install for All UsersThe key is to use the official GitHub Desktop installer with the right command-line flags.
Full example from a deployment script: cmd # Change to the directory containing the downloaded installer cd C:\Path\To\Installer\ Silent UninstallUninstalling silently is slightly more complex because it depends on finding the correct uninstall string registered in Windows. Method 1: Using the Uninstall String (Most Reliable)
cmd
|
| Action | Command (Run in an Elevated Command Prompt) |
|---|---|
| Silent Install for All Users | GitHubDesktopSetup-x64.exe /S /AllUsers |
| Silent Uninstall (Method 1) | "C:\Program Files\GitHub Desktop\GitHubDesktop.exe" --uninstall -s |
| Silent Uninstall (Method 2) | wmic product where "name like 'GitHub Desktop'" call uninstall /nointeractive |
Important Notes
Always test these commands in a non-production environment first.The "All Users" installation requires administrator privileges both for install and uninstall.The exact uninstall string in Method 1 might vary slightly. Checking the registry is the safest way to be sure.
These methods should allow you to seamlessly deploy and manage GitHub Desktop in your organization.
Of course! This is a common requirement for IT administrators deploying software in an enterprise environment.
Here’s how to silently install and uninstall GitHub Desktop for Windows for all users.
Silent Install for All Users
The key is to use the official GitHub Desktop installer with the right command-line flags.
Download the installer: Get the latest GitHubDesktopSetup-x64.exe from the official GitHub Desktop website.
Run the installer from an elevated command prompt (Run as Administrator). This is crucial for the "All Users" part to work.
Use the following command:
cmd
GitHubDesktopSetup-x64.exe /S /AllUsers
/S is the standard switch for a silent installation (no user interaction).
/AllUsers instructs the installer to place the application in C:\Program Files\GitHub Desktop\ and make it available to everyone on the machine.
Full example from a deployment script:
cmd
Change to the directory containing the downloaded installer
cd C:\Path\To\Installer\
Run the silent, all-users installation
GitHubDesktopSetup-x64.exe /S /AllUsers
Silent Uninstall
Uninstalling silently is slightly more complex because it depends on finding the correct uninstall string registered in Windows.
Method 1: Using the Uninstall String (Most Reliable)
Find the uninstall string from the Windows Registry.
Open regedit.exe and navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\
Look for a key named GitHub Desktop.
Inside, find the QuietUninstallString value.
The command will look something like this (the GUID will be different):
cmd
"C:\Program Files\GitHub Desktop\GitHubDesktop.exe" --uninstall -s
The -s flag is for silent uninstall.
Run this command from an elevated command prompt.
Method 2: Using a Universal Uninstaller Tool (Easier for Scripting)
You can use wmic to get the uninstall string dynamically and execute it. This is useful for scripts where you don't want to hardcode the path.
cmd
wmic product where "name like 'GitHub Desktop'" call uninstall /nointeractive
Note: The wmic method can be slower but is very effective for scripting across multiple machines.
Summary of Commands
Action Command (Run in an Elevated Command Prompt)
Silent Install for All Users GitHubDesktopSetup-x64.exe /S /AllUsers
Silent Uninstall (Method 1) "C:\Program Files\GitHub Desktop\GitHubDesktop.exe" --uninstall -s
Silent Uninstall (Method 2) wmic product where "name like 'GitHub Desktop'" call uninstall /nointeractive
Important Notes
Always test these commands in a non-production environment first.
The "All Users" installation requires administrator privileges both for install and uninstall.
The exact uninstall string in Method 1 might vary slightly. Checking the registry is the safest way to be sure.
These methods should allow you to seamlessly deploy and manage GitHub Desktop in your organization.
Beta Was this translation helpful? Give feedback.
-
Silent Install / Uninstall GitHub Desktop on WindowsYou can perform silent installation and silent uninstallation of GitHub Desktop on Windows using command-line options. This is useful for deploying across multiple machines or automated scripts. 1. Silent Install
GitHubDesktopSetup.exe /SNotes: /S triggers silent installation (no UI prompts). By default, it installs for the current user. For all users, GitHub Desktop does not officially provide a direct /ALLUSERS option, but you can use system-level deployment tools (like Intune, SCCM) to copy it into C:\Program Files and create shortcuts for all users.
GitHub Desktop uses standard Windows uninstaller. To silently uninstall: Find the uninstall string in Registry or using PowerShell: Run the uninstall string with silent flag /S: "C:\Users<Username>\AppData\Local\GitHubDesktop\Update.exe" --uninstall --silent Notes: Replace with the actual user profile. Silent uninstall removes the app without UI prompts. |
Beta Was this translation helpful? Give feedback.
-
|
Hi! 👋 Yes, GitHub Desktop for Windows supports silent install/uninstall with standard installer switches. Silent Install for all users: GitHubDesktopSetup.exe /S /allusers Silent Uninstall: "%LOCALAPPDATA%\GitHubDesktop\Update.exe" --uninstall -s 📌 Notes: Use /allusers to install system-wide instead of per-user. The Update.exe tool (included with GitHub Desktop) handles uninstalls silently with -s. If you’re deploying via SCCM/Intune, these switches work fine in your deployment script. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Hello.
Does anyone knows how to silent install GitHub Desktop for Windows for All Users?
And what about Silent Uninstall
any solution ?
Thks in Adv.
Beta Was this translation helpful? Give feedback.
All reactions