<commit_before>;NSIS Modern Csound5 Install Script

!define PRODUCT "Csound"
!define VERSION "5beta"
!define PROGRAM "csound"

!include "MUI.nsh"

;--------------------------------
;General

  ;Name and file
  Name "${PRODUCT}"
  OutFile "${PROGRAM}-${VERSION}.exe"

  ;Default installation folder
  InstallDir "$PROGRAMFILES\${PRODUCT}"
  
  ;Get installation folder from registry if available
  InstallDirRegKey HKCU "Software\${PRODUCT}" ""

;--------------------------------
;Variables

  Var MUI_TEMP
  Var STARTMENU_FOLDER

;--------------------------------
;Interface Settings

  !define MUI_ABORTWARNING

;--------------------------------
;Pages

  !insertmacro MUI_PAGE_WELCOME
  !insertmacro MUI_PAGE_LICENSE "..\..\readme.txt"
  !insertmacro MUI_PAGE_DIRECTORY
  
  ;Start Menu Folder Page Configuration
  !define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU" 
  !define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\${PRODUCT}" 
  !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
  
  !insertmacro MUI_PAGE_STARTMENU Application $STARTMENU_FOLDER
  
  !insertmacro MUI_PAGE_INSTFILES

  !define MUI_FINISHPAGE_SHOWREADME readme.txt
  !define MUI_FINISHPAGE_SHOWREADME_CHECKED
  !insertmacro MUI_PAGE_FINISH

  !insertmacro MUI_UNPAGE_CONFIRM
  !insertmacro MUI_UNPAGE_INSTFILES

;--------------------------------
;Languages
 
  !insertmacro MUI_LANGUAGE "English"

;--------------------------------
;Installer Sections

Section "${PRODUCT}" SecCopyUI

  SetOutPath "$INSTDIR"
  
  File ..\..\*.exe
  File ..\..\*.dll
  File ..\..\*.xmg
  File ..\..\csound-*.pdf
  File ..\..\*.htm*
  File ..\..\*.txt
  File ..\..\ChangeLog
  File ..\..\loris.py
  File ..\..\CsoundVST.py
  File ..\..\*.class
  SetOutPath $INSTDIR\lib
  File ..\..\libcsound.a
  File ..\..\libCsoundVST.a
  SetOutPath $INSTDIR\include
  File ..\..\H\csound.h
  File ..\..\H\sysdep.h
  File ..\..\H\cwindow.h
  File ..\..\H\opcode.h
  File ..\..\frontends\CsoundVST\*.hpp
  SetOutPath $INSTDIR\examples
  File ..\..\examples\*.csd
  File ..\..\examples\*.py
  SetOutPath $INSTDIR\samples
  File ..\..\samples\*

  ;Store installation folder
  WriteRegStr HKCU "Software\${PRODUCT}" "" $INSTDIR
  
  ; back up old value of .csd
  ReadRegStr $1 HKCR ".csd" ""<commit_msg>Changed location of Java classes. Added documentation. Added ALL csound headers.<commit_after>;NSIS Modern Csound5 Install Script

!define PRODUCT "Csound"
!define VERSION "5beta"
!define PROGRAM "csound"

!include "MUI.nsh"

;--------------------------------
;General

  ;Name and file
  Name "${PRODUCT}"
  OutFile "${PROGRAM}-${VERSION}.exe"

  ;Default installation folder
  InstallDir "$PROGRAMFILES\${PRODUCT}"
  
  ;Get installation folder from registry if available
  InstallDirRegKey HKCU "Software\${PRODUCT}" ""

;--------------------------------
;Variables

  Var MUI_TEMP
  Var STARTMENU_FOLDER

;--------------------------------
;Interface Settings

  !define MUI_ABORTWARNING

;--------------------------------
;Pages

  !insertmacro MUI_PAGE_WELCOME
  !insertmacro MUI_PAGE_LICENSE "..\..\readme.txt"
  !insertmacro MUI_PAGE_DIRECTORY
  
  ;Start Menu Folder Page Configuration
  !define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU" 
  !define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\${PRODUCT}" 
  !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
  
  !insertmacro MUI_PAGE_STARTMENU Application $STARTMENU_FOLDER
  
  !insertmacro MUI_PAGE_INSTFILES

  !define MUI_FINISHPAGE_SHOWREADME readme.txt
  !define MUI_FINISHPAGE_SHOWREADME_CHECKED
  !insertmacro MUI_PAGE_FINISH

  !insertmacro MUI_UNPAGE_CONFIRM
  !insertmacro MUI_UNPAGE_INSTFILES

;--------------------------------
;Languages
 
  !insertmacro MUI_LANGUAGE "English"

;--------------------------------
;Installer Sections

Section "${PRODUCT}" SecCopyUI

  SetOutPath "$INSTDIR"
  
  File ..\..\*.exe
  File ..\..\*.dll
  File ..\..\*.xmg
  File ..\..\csound*.pdf
  File ..\..\*.htm*
  File ..\..\*.txt
  File ..\..\ChangeLog
  File ..\..\loris.py
  File ..\..\CsoundVST.py
  File ..\..\classes\*.class
  SetOutPath $INSTDIR\lib
  File ..\..\libcsound.a
  File ..\..\libCsoundVST.a
  SetOutPath $INSTDIR\include
  File ..\..\H\*.h
  File ..\..\frontends\CsoundVST\*.h*
  SetOutPath $INSTDIR\examples
  File ..\..\examples\*.csd
  File ..\..\examples\*.py
  SetOutPath $INSTDIR\samples
  File ..\..\samples\*
  SetOutPath $INSTDIR\doc
  File ..\..\..\manual\html\*

  ;Store installation folder
  WriteRegStr HKCU "Software\${PRODUCT}" "" $INSTDIR
  
  ; back up old value of .csd
  ReadRegStr $1 HKCR ".csd" ""
{'fraction_non_alphanumeric': 0.21282670766527564, 'fraction_numerical': 0.001317812431363936, 'mean_word_length': 2.338709677419355, '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': '4983665', 'n_tokens_mistral': 1705, 'n_tokens_neox': 1558, 'n_words': 338}