<commit_before>; The name of the installer
Name "Digitanks"

; The file to write
OutFile "digitanks.exe"

; The default installation directory
InstallDir $PROGRAMFILES\Digitanks

; Registry key to check for directory (so if you install again, it will 
; overwrite the old one automatically)
InstallDirRegKey HKLM "Software\Digitanks" "Install_Dir"

; Request application privileges for Windows Vista
RequestExecutionLevel admin

Icon "digitanks.ico"

;--------------------------------

; Pages

Page components
Page directory
Page instfiles

UninstPage uninstConfirm
UninstPage instfiles

;--------------------------------

; The stuff to install
Section "Digitanks (required)"

  SectionIn RO
  
  ; Set output path to the installation directory.
  SetOutPath $INSTDIR
  
  ; Put file there
  File /r "Digitanks\*.*"
  
  ; Write the installation path into the registry
  WriteRegStr HKLM SOFTWARE\Digitanks "Install_Dir" "$INSTDIR"
  
  ; Write the uninstall keys for Windows
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Digitanks" "DisplayName" "Digitanks"
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Digitanks" "UninstallString" '"$INSTDIR\uninstall.exe"'
  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Digitanks" "NoModify" 1
  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Digitanks" "NoRepair" 1
  WriteUninstaller "uninstall.exe"
  
SectionEnd

; Optional section (can be disabled by the user)
Section "Start Menu Shortcuts"

  CreateDirectory "$SMPROGRAMS\Digitanks"
  CreateShortCut "$SMPROGRAMS\Digitanks\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
  CreateShortCut "$SMPROGRAMS\Digitanks\Digitanks.lnk" "$INSTDIR\digitanks.exe" "" "$INSTDIR\digitanks.exe" 0
  CreateShortCut "$SMPROGRAMS\Digitanks\Digitanks (Windowed).lnk" "$INSTDIR\digitanks.exe" "--windowed" "$INSTDIR\digitanks.exe" 0
  
SectionEnd

;--------------------------------

; Uninstaller

Section "Uninstall"
  
  ; Remove registry keys
  DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Digitanks"
  DeleteRegKey HKLM SOFTWARE\Digitanks

  ; Remove files and uninstaller
  RMDir /r "$INSTDIR\models"
  RMDir /r "$INSTDIR\sound"
  RMDir /r "$INSTDIR\textures"
  Delete $INSTDIR\*.*

  ; Remove shortcuts, if any
  Delete "$SMPROGRAMS\Digitanks\*.*"

  ; Remove directories used
  RMDir "$SMPROGRAMS\Digitanks"
  RMDir "$INSTDIR"

SectionEnd
<commit_msg>Make a desktop shortcut!<commit_after>; The name of the installer
Name "Digitanks"

; The file to write
OutFile "digitanks.exe"

; The default installation directory
InstallDir $PROGRAMFILES\Digitanks

; Registry key to check for directory (so if you install again, it will 
; overwrite the old one automatically)
InstallDirRegKey HKLM "Software\Digitanks" "Install_Dir"

; Request application privileges for Windows Vista
RequestExecutionLevel admin

Icon "digitanks.ico"

;--------------------------------

; Pages

Page components
Page directory
Page instfiles

UninstPage uninstConfirm
UninstPage instfiles

;--------------------------------

; The stuff to install
Section "Digitanks (required)"

  SectionIn RO
  
  ; Set output path to the installation directory.
  SetOutPath $INSTDIR
  
  ; Put file there
  File /r "Digitanks\*.*"
  
  ; Write the installation path into the registry
  WriteRegStr HKLM SOFTWARE\Digitanks "Install_Dir" "$INSTDIR"
  
  ; Write the uninstall keys for Windows
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Digitanks" "DisplayName" "Digitanks"
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Digitanks" "UninstallString" '"$INSTDIR\uninstall.exe"'
  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Digitanks" "NoModify" 1
  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Digitanks" "NoRepair" 1
  WriteUninstaller "uninstall.exe"
  
SectionEnd

; Optional section (can be disabled by the user)
Section "Start Menu Shortcuts"

  CreateDirectory "$SMPROGRAMS\Digitanks"
  CreateShortCut "$SMPROGRAMS\Digitanks\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
  CreateShortCut "$SMPROGRAMS\Digitanks\Digitanks.lnk" "$INSTDIR\digitanks.exe" "" "$INSTDIR\digitanks.exe" 0
  CreateShortCut "$SMPROGRAMS\Digitanks\Digitanks (Windowed).lnk" "$INSTDIR\digitanks.exe" "--windowed" "$INSTDIR\digitanks.exe" 0
  
SectionEnd

; Optional section (can be disabled by the user)
Section "Desktop Shortcut"

  CreateShortCut "$DESKTOP\Digitanks.lnk" "$INSTDIR\digitanks.exe" "" "$INSTDIR\digitanks.exe" 0

SectionEnd

;--------------------------------

; Uninstaller

Section "Uninstall"
  
  ; Remove registry keys
  DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Digitanks"
  DeleteRegKey HKLM SOFTWARE\Digitanks

  ; Remove files and uninstaller
  RMDir /r "$INSTDIR\models"
  RMDir /r "$INSTDIR\sound"
  RMDir /r "$INSTDIR\textures"
  Delete $INSTDIR\*.*

  ; Remove shortcuts, if any
  Delete "$SMPROGRAMS\Digitanks\*.*"

  ; Remove directories used
  RMDir "$SMPROGRAMS\Digitanks"
  RMDir "$INSTDIR"

SectionEnd

{'fraction_non_alphanumeric': 0.12273491500093406, 'fraction_numerical': 0.0020549224733794136, 'mean_word_length': 3.4284532671629444, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '4984976', 'n_tokens_mistral': 1871, 'n_tokens_neox': 1623, 'n_words': 422}