$registryKeyName = 'Git_is1' $packageId = 'git.install' $fileType = 'exe' $fileArgs = $( '/VERYSILENT /NORESTART /NOCANCEL /SP- ' + '/COMPONENTS="icons,icons\quicklaunch,ext,ext\shellhere,ext\guihere,assoc,assoc_sh" /LOG' ) $url = 'https://github.com/git-for-windows/git/releases/download/v2.9.3.windows.1/Git-2.9.3-32-bit.exe' $url64 = 'https://github.com/git-for-windows/git/releases/download/v2.9.3.windows.1/Git-2.9.3-64-bit.exe' $softwareName = 'Git*' $checksum = 'd6b4a19536ad408018688f1242ab0d1f5dc5544109662bfddf915f685eba58a9' $checksum64 = '1a642cf2914e18fa868b1ed2c6d1df4a46ba8ef30355fd1965850895a658e024' $checksumType = 'sha256' $arguments = @{}; # /GitOnlyOnPath /GitAndUnixToolsOnPath /NoAutoCrlf $packageParameters = $env:chocolateyPackageParameters; # Default the values $useWindowsTerminal = $false $gitCmdOnly = $false $unixTools = $false $noAutoCrlf = $false # this does nothing unless true # Now parse the packageParameters using good old regular expression if ($packageParameters) { $match_pattern = "\/(?