Closed jantari closed 2 years ago
Prior to installation:
$installKey = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Git_is1" $ino = "Inno Setup CodeFile:" if (-not (Test-Path $installKey) { mkdir $installKey } # Use standard windows terminal/conhost, no git bash New-ItemProperty $InstallKey -Name "$ino Bash Terminal Option" -Value "ConHost" -PropertyType "String" -Force # Only add git to PATH, not other unix tools New-ItemProperty $installKey -Name "$ino Path Option" -Value "Cmd" -PropertyType "String" -Force # Use SCHANNEL tls-backend instead of openssl New-ItemProperty $InstallKey -Name "$ino CURL Option" -Value "WinSSL" -Force
During installation:
/VERYSILENT /NORESTART /NOCANCEL /SP- /CLOSEAPPLICATIONS /RESTARTAPPLICATIONS /COMPONENTS="ext,ext\shellhere,ext\guihere,gitlf
That's quite the abuse of the uninstaller information, I must say. Why not use the /o:<key>=<value>
way to specify e.g. /o:BashTerminalOption=ConHost
?
Please add a COMPONENTS or other cli option to the installer to not install git-bash.
Please do not ask for something you can easily implement yourself:
sdk cd installer
,install.iss
(the components are defined here, and the icons are defined here)sdk build installer
That's quite the abuse of the uninstaller information, I must say. Why not use the /o:
= way to specify e.g. /o:BashTerminalOption=ConHost?
Because I am using the git for Windows package that PDQ Deploy provides, so that the software is updated automatically. They predefined these installer-arguments and I cannot edit them. However, I can add custom pre- and post-tasks to their package.
Also thanks for the directions, I had looked at the setup files previously and will look into implementing it myself.
Closing as stale.
I was not able to find an open or closed issue matching what I'm seeing
Setup
Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
2.29.2.2 (amd64)
Prior to installation:
During installation:
After Installation:
Configuration
I don't think so, might edit later.
Details
Always PowerShell 7.
Not applicable.
Not applicable.
Not applicable.
I never use
git-bash
and find it wholly unneccessary. When installing git for windows manually I always deselect it as I prefer using PowerShell on Windows. However, for a silent/unattended installation this option is not exposed.Please add a COMPONENTS or other cli option to the installer to not install git-bash.