I'm aware of the basic silent install arguments like so.
Git-1.9.4-preview20140611.exe /SILENT /COMPONENTS="icons,ext\reg\shellhere,assoc,assoc_sh"
However I need to install git with the option 'Run Git from the Windows Command Prompt' I've yet to find a argument for this.
Answer
At the current time you must set the registry options beforehand if you want to do so. The Chocolatey package does this based on package parameters you pass to the install command:
choco install git -params '"/GitAndUnixToolsOnPath"'
or
choco install git -params '"/GitOnlyOnPath"'
That said, if you want to get it as an argument, the Git for Windows folks are very accepting of Pull Requests. If you have the InnoSetup installer experience, please contribute at git-for-windows/build-extra.
More Information
If you are curious to see how it works, inspect the files section of the package page and tools\chocolateyInstall.ps1
and you will see the following:
if ($gitCmdOnly) {
# update registry so installer picks it up automatically
New-ItemProperty $installKey -Name "Inno Setup CodeFile: Path Option" -Value "Cmd" -PropertyType "String" -Force | Out-Null
}
if ($unixTools) {
# update registry so installer picks it up automatically
New-ItemProperty $installKey -Name "Inno Setup CodeFile: Path Option" -Value "CmdTools" -PropertyType "String" -Force | Out-Null
}
No comments:
Post a Comment