<commit_before>Name    "Git LFS"
OutFile "GitLFSInstaller.exe"


InstallDir $DESKTOP

VIProductVersion "0.6.0.0"
VIAddVersionKey FileVersion      "0.6.0.0"
VIAddVersionKey ProductVersion   "0.6.0.0"
VIAddVersionKey ProductName      "Git LFS"
VIAddVersionKey Comments         "Git LFS"
VIAddVersionKey CompanyName      "GitHub, Inc"
VIAddVersionKey FileDescription  "Git LFS extension"
VIAddVersionKey InternalName     "Git LFS"
VIAddVersionKey LegalCopyright   "(c) GitHub, Inc. and Git LFS contributors"
VIAddVersionKey LegalTrademarks  "(c) GitHub, Inc. and Git LFS contributors"
VIAddVersionKey OriginalFilename "GitLFSInstaller.exe"

Function .onGUIInit
  IfFileExists $PROGRAMFILES64\Git\mingw64\bin\git.exe 0 +3
    StrCpy $INSTDIR "$PROGRAMFILES64\Git\mingw64\bin"
    Goto exit

  IfFileExists $PROGRAMFILES64\Git\bin\git.exe 0 +3
    StrCpy $INSTDIR "$PROGRAMFILES64\Git\bin"
    Goto exit

  IfFileExists $PROGRAMFILES\Git\bin\git.exe 0 exit
    StrCpy $INSTDIR "$PROGRAMFILES\Git\bin\git.exe"

  exit:
    SetOutPath $INSTDIR
FunctionEnd

Function .onInstSuccess
  MessageBox MB_OK "Open Git Bash and run 'git lfs init' to get started."
FunctionEnd

Page license
Page directory
Page instfiles
LicenseData ..\..\LICENSE.md

Section
  File git-lfs.exe
  WriteUninstaller $INSTDIR\git-lfs-uninstaller.exe
SectionEnd


Section "Uninstall"
  Delete $INSTDIR\git-lfs-uninstaller.exe
  Delete $INSTDIR\git-lfs.exe
SectionEnd<commit_msg>copy to the 'proxy git' dir too<commit_after>Name    "Git LFS"
OutFile "GitLFSInstaller.exe"

InstallDir $DESKTOP

VIProductVersion "0.6.0.0"
VIAddVersionKey FileVersion      "0.6.0.0"
VIAddVersionKey ProductVersion   "0.6.0.0"
VIAddVersionKey ProductName      "Git LFS"
VIAddVersionKey Comments         "Git LFS"
VIAddVersionKey CompanyName      "GitHub, Inc"
VIAddVersionKey FileDescription  "Git LFS extension"
VIAddVersionKey InternalName     "Git LFS"
VIAddVersionKey LegalCopyright   "(c) GitHub, Inc. and Git LFS contributors"
VIAddVersionKey LegalTrademarks  "(c) GitHub, Inc. and Git LFS contributors"
VIAddVersionKey OriginalFilename "GitLFSInstaller.exe"

Function .onGUIInit
  Var /GLOBAL HASPROXYGIT
  StrCpy $HASPROXYGIT "no"
  IfFileExists $PROGRAMFILES64\Git\cmd\git.exe 0 +2
    StrCpy $HASPROXYGIT "yes"

  ; Git for Windows location
  IfFileExists $PROGRAMFILES64\Git\mingw64\bin\git.exe 0 +3
    StrCpy $INSTDIR "$PROGRAMFILES64\Git\mingw64\bin"
    Goto exit

  IfFileExists $PROGRAMFILES64\Git\bin\git.exe 0 +3
    StrCpy $INSTDIR "$PROGRAMFILES64\Git\bin"
    Goto exit

  IfFileExists $PROGRAMFILES\Git\bin\git.exe 0 +2
    StrCpy $INSTDIR "$PROGRAMFILES\Git\bin\git.exe"

  exit:
    SetOutPath $INSTDIR
FunctionEnd

Function .onInstSuccess
  MessageBox MB_OK "Open Git Bash and run 'git lfs init' to get started."
FunctionEnd

Page license
Page directory
Page instfiles
LicenseData ..\..\LICENSE.md

Section
  File git-lfs.exe

  StrCmp $HASPROXYGIT "yes" 0 +3
    SetOutPath $PROGRAMFILES64\Git\cmd
    File git-lfs.exe

  WriteUninstaller $INSTDIR\git-lfs-uninstaller.exe
SectionEnd


Section "Uninstall"
  Delete $INSTDIR\git-lfs-uninstaller.exe
  Delete $INSTDIR\git-lfs.exe

  StrCmp $HASPROXYGIT "yes" 0
    Delete $PROGRAMFILES64\Git\cmd\git-lfs.exe
SectionEnd
{'fraction_non_alphanumeric': 0.08691617692545624, 'fraction_numerical': 0.021651716671821836, 'mean_word_length': 4.141494435612083, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5077765', 'n_tokens_mistral': 1270, 'n_tokens_neox': 1145, 'n_words': 287}