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" /VERYSILENTDetection 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" /VERYSILENTDeployment 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.
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.