How to deploy GitHub Desktop on Windows using Intune

GitHub Desktop provides an intuitive interface that allows users to perform common Git actions without using the command-line interface. It is available for Windows and macOS operating systems and aims to provide a simpler entry point for developers who may not be comfortable with Git’s command-line interface.

In this blog post, I’ll demonstrate how to deploy the GitHub desktop application on Intune-managed Windows devices.

Github desktop is available for download as .exe form and also as .MSI Installer file as well. When you use .exe based Installer file, It will install the application in User Context. When you will use .MSI Installer to deploy the app using Intune, it will be Installed in device context.

For .exe installer file, we will utilize Win32 app deployment method and for .MSI installer we will use Line-of-business app type.

Note

First, we will check the steps to deploy the GitHub Desktop MSI Installer, and subsequently, we will go through the steps for deploying the GitHub Desktop Exe Installer.

STEP 1 – Download Github Desktop MSI Installer

To download GitHub Desktop Installer, you can follow the below steps:

  • Visit the GitHub Desktop website and click the Windows MSI link. This will initiate the download of the GitHub Desktop MSI installer file.
Download Github Desktop MSI Installer
Download Github Desktop MSI Installer

STEP 2 – Deploy the Github desktop using MSI Installer

The MSI Installer will install this application in the system context, making it available to any user who logs in to the device.

  • Sign in to the Intune admin center.
  • Go to Apps > All Apps > click on Add.
  • Using the App type drop-down, Select the Line-of-business app option.
  • Browse the downloaded MSI file by clicking on the Icon folder.
  • Provide Name, Description, and Publisher Information. Follow through to Assignments and Review + create to create an App deployment.

I haven’t covered all the specific details for setting up the deployment of an MSI application in this post, as the process is the same as deploying any other MSI application through Intune. For a complete, step-by-step guide on deploying MSI applications with Intune, please refer to the blog post titled, How to deploy MSI applications using Intune.

Detailed guide on MSI Deployment Steps
  • The screenshot below shows the App Information page of the GitHub Desktop MSI app deployment on the Intune admin center
Deploy the Github desktop using MSI Installer
Deploy the Github desktop using MSI Installer

Please be aware that when you use an .MSI-based installer of GitHub desktop app, the application will be installed for each user at their initial sign-in. Each time a user logs in, it will execute the %[#GitHubDesktop.exe] --checkInstall command.

So, if you deploy GitHub Desktop using a device-based installer (MSI) and don’t see the app installed right away, simply sign out and then sign back in on your device.

Important

Deploy Github Desktop App using a .EXE Installer

In the previous section of the blog post, we covered the deployment steps for the GitHub Desktop app using an .MSI Installer. If you are deploying the GitHub Desktop app using a .exe-based Installer, you can follow the steps below:

STEP 1 – Download Github Desktop EXE Installer

To download GitHub Desktop Installer, you can follow the below steps:

  • Visit the GitHub Desktop website and click the Download for Windows (64-bit) button. This will initiate the download of your system’s GitHub Desktop .exe installer file.
Download Github Desktop EXE Installer
Download Github Desktop EXE Installer

STEP 2 – Create an App deployment

  • Once you download the GitHub desktop app, move it to a separate folder that does not contain any other files apart from application setup files. I have moved it to the D:\Githubsetup folder.
  • Create an empty folder called Output anywhere in C:\ or D:\ drive. You can name it whatever you like. This will be the folder where we will generate .Intunewin file.
  • Launch the Powershell console as an administrator and then navigate to the folder where the Microsoft Win32 Content Prep Tool is located to set it as the current directory.
  • Run IntunewinAppUtil.exe, and you will see options to specify a Source Folder, Setup File, Output Folder, and Catalog Folder.
    • Source Folder: Provide the folder where all application setup files are copied—for example, D:\Githubsetup.
    • Setup File: GitHubDesktopSetup-64.exe
    • Output folder: C:\output
    • Catalog folder: Specify N not to specify any Catalog folder or press Enter to skip.
Create intunewin file for GitHub desktop app
Create intunewin file for the GitHub desktop app
Intunewin file
Intunewin file

If you are facing any Issues creating .Intunewin file. You can refer to my step-by-step guide which provides more details on How to create an IntuneWin file.

Note

STEP 3 – Create a Win32 App Deployment

Now that we have created the .intunewin file, we will use it to create a Win32 app deployment on the Intune admin center and deploy it on target devices.

To Create Win32 app deployment, follow the below steps:

  1. Sign in to the Intune admin center.
  2. Click on Apps and then click on All Apps.
  3. Click on + Add and Select Windows app (Win32) from the App type drop-down.

App Information

Click on “Select app package file” and browse to .Intunewin file.

Create Win32 app deployment for Github desktop on Intune
Create Win32 app deployment for Github desktop on Intune

Provide Information in the mandatory fields below. The rest of the fields are optional but useful for application documentation and troubleshooting issues.

Required Fields:

  • Name – Provide a unique name of the application.
  • Description – Provide a helpful description.
  • Publisher – Provide Publisher Information. For example, Microsoft.
Provide App Information about Github Desktop app on Intune admin center
App Information

Program

Provide the Install command, uninstall commandInstall behavior and Device restart behavior. Click on Next to proceed.

  • Install command: Provide Install command as GitHubDesktopSetup-x64.exe -s
  • Uninstall command: The installation command remains the same as I am still testing to discover this app’s uninstall command line switch.

An alternative for Uninstall command not available is to use .MSI based Installer which will deploy this app in device context. You can also easily Uninstall this app when you use Line-of-business app option on Intune. I have provided the steps to create MSI based deployment of Github desktop app in the previous sections of this blog post.

Alternative to Uninstall Command when Deploying .exe based Github Desktop App
Install and Uninstall commands for Github desktop app on Intune admin center
Install and Uninstall commands for Github desktop app on Intune admin center

Requirements

You can specify the requirements that devices must meet to deploy the app. If your devices mix 32-bit and 64-bit types, check the boxes for 32-bit and 64-bit in the Operating system architecture drop-down. Else, go with 64-bit.

  • Operating System Architecture: 64-bit
  • Minimum operating system: Select the version used in your environment, such as Windows 10 1607.

Detection Rules

Select Manually configure detection rules and click on +Add to add a detection rule.

  • Rules Format: Select Manually configure detection rules
  • Rule Type: File
  • Path: %localappdata%\GitHubDesktop\
  • File or folder: GitHubDesktop.exe
  • Associated with a 32-bit app on 64-bit clients: No

Assignments

Click on Add group to add an Azure AD group containing users or devices. You can also click on Add all users or Add all devices.

Review + Create

Review the deployment and click on Create to start the deployment process.

Sync Intune Policies

The device check-in process might not begin immediately. If you’re testing this policy on a test device, you can manually kickstart Intune sync from the device itself or remotely through the Intune admin center.

Alternatively, you can use PowerShell to force the Intune sync on Windows devices. Restarting the device is another way to trigger the Intune device check-in process.

STEP 4 – Monitoring Deployment Progress

You can follow the below steps to monitor the installation:

From the Microsoft Intune admin center >Apps > All apps. Click on the deployment and check the Overview page to show the deployment status.

Github desktop app monitoring from Intune admin center
Github desktop app monitoring from Intune admin center

End User Experience

To verify whether the application has been successfully installed on the end user’s device, please follow these steps:

  • Press the Win + R keys to open the Run dialog box
  • Type appwiz.cpl and press enter to open the programs and features window
  • Find the GitHub Desktop application in the list of Installed programs to confirm the Installation.
Github desktop app installed on target devices
Github desktop app installed on target devices
  • Since we’ve installed this application in the user’s context, it will also be located within the user’s profile directory under the %localappdata% folder.
Github Desktop app installed under user's profile
GitHub Desktop app installed under the user’s profile
  • You can also search for the GitHub Desktop application in the Start Menu and click on it to launch it.
Github desktop icon in start menu
GitHub desktop icon in the start menu
  • Once you launch the application, you’ll encounter a window displaying a Welcome to GitHub Desktop message. To proceed, click on either Sign in to GitHub.com or GitHub Enterprise. If you don’t have a GitHub account, click Create your free account to create one.
Github desktop app launched after installation
Github desktop app launched after installation

Conclusion

In this blog post, we’ve explored the process of deploying the GitHub Desktop application on Windows devices using Intune. When you use the .exe file, it’s based on a user context and installs under the user’s profile. Alternatively, you can opt for the MSI installer file, which deploys in the device context, making it available for all users who sign in.

Leave a Comment