Skip to main content
    All apps
    Development
    Inno Setup
    Verified recipe

    Git for Windows Silent Install Switches (Intune & SCCM)

    Silent install switches

    /VERYSILENT /NORESTART /COMPONENTS="icons,ext\reg\shellhere,assoc,assoc_sh"

    Silent uninstall switches: /VERYSILENT

    Intune Win32 app settings

    Paste these into the Program and Detection rules steps when you add Git for Windows as a Win32 app.

    Install command
    Git-Setup.exe /VERYSILENT /NORESTART /COMPONENTS="icons,ext\reg\shellhere,assoc,assoc_sh"
    Uninstall command
    "C:\Program Files\Git\unins000.exe" /VERYSILENT
    Detection rule (File)
    C:\Program Files\Git\git-cmd.exe
    • Device restart behavior: no restart required.

    SCCM / ConfigMgr deployment type

    Installation program
    Git-Setup.exe /VERYSILENT /NORESTART /COMPONENTS="icons,ext\reg\shellhere,assoc,assoc_sh"
    Uninstall program
    "C:\Program Files\Git\unins000.exe" /VERYSILENT

    Deployment notes

    Includes Git Bash, GUI, and shell integration. Use 64-bit version.

    Inno Setup installers use /VERYSILENT /SUPPRESSMSGBOXES /NORESTART for a fully silent run; /SP- skips the "This will install…" prompt.

    Package Git for Windows as .intunewin in under 3 minutes

    Drop in the Git for Windows installer and InstallMage detects the switches, builds the MSI or .intunewin, and generates the install, uninstall and detection commands for you. Free plan, no credit card.

    FAQ

    What are the silent install switches for Git for Windows?
    Git for Windows installs silently with /VERYSILENT /NORESTART /COMPONENTS="icons,ext\reg\shellhere,assoc,assoc_sh" (it uses a Inno Setup installer). Full command: Git-Setup.exe /VERYSILENT /NORESTART /COMPONENTS="icons,ext\reg\shellhere,assoc,assoc_sh"
    How do I silently uninstall Git for Windows?
    Run: "C:\Program Files\Git\unins000.exe" /VERYSILENT
    What detection rule should I use for Git for Windows in Intune?
    Use a file detection rule. File exists: C:\Program Files\Git\git-cmd.exe.
    How do I deploy Git for Windows with Intune?
    Wrap the installer as a Win32 app (.intunewin), set the install and uninstall commands above, and add the detection rule. InstallMage can build the .intunewin and generate these commands from the Git for Windows installer in under three minutes.

    More Development silent install switches