<commit_before>;NSIS Modern User Interface
;Start Menu Folder Selection Example Script
;Written by <NAME>

;--------------------------------
;Include Modern UI

  !include "MUI2.nsh"

	!ifdef X86
		!define Arch "x86"
		!define ArchBit "32bit"
	!else
		!define Arch "x64"
		!define ArchBit "64bit"
	!endif
	
	!ifdef HERMES
		!define MonicaVersion "hermes"
	!else
		!define MonicaVersion "json"
	!endif
	
	!ifdef VC11
		!define VCversion "11"
	!else
		!define VCversion "12"
	!endif
	
;--------------------------------
;General

  ;Name and file
  Name "MONICA"
  OutFile "MONICA-Setup-1.2-${Arch}-${ArchBit}.exe"

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

  ;Request application privileges for Windows Vista
  RequestExecutionLevel admin

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

  Var StartMenuFolder

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

  !define MUI_ABORTWARNING
  !define MUI_HEADERIMAGE
  !define MUI_HEADERIMAGE_LEFT
  !define MUI_HEADERIMAGE_BITMAP "orange.bmp"
  !define ICON		"monica_icon.ico"
  !define MUI_ICON	"monica_icon.ico"

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

  !insertmacro MUI_PAGE_WELCOME
  !insertmacro MUI_PAGE_LICENSE "license.txt"
  !insertmacro MUI_PAGE_COMPONENTS
  !insertmacro MUI_PAGE_DIRECTORY
  
  ;Start Menu Folder Page Configuration
  !define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU" 
  !define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\MONICA" 
  !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
  
  !insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder
  
  !insertmacro MUI_PAGE_INSTFILES
  
  !insertmacro MUI_UNPAGE_CONFIRM
  !insertmacro MUI_UNPAGE_INSTFILES

;--------------------------------
;Languages
 
  !insertmacro MUI_LANGUAGE "German"

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

Section "MONICA - Model for Nitrogen and Carbon in Agro-ecosystems" SecDummy

	;SetOutPath "c:\temp"
	;install Visual C++ 2012 runtime
	;File "vcredist_${Arch}.exe"
	;ExecWait "c:\temp\vcredist_${ARCH}.exe /q:a"
	;Delete "c:\temp\vcredist_${ARCH}.exe"

  SetOutPath "$INSTDIR"
  
  ;ADD YOUR OWN FILES HERE...
  File /oname=monica.exe "..\release\monica-${MonicaVersion}.exe"  
	File "C:\Program Files (x86)\Microsoft Visual Studio ${VCversion}.0\VC\redist\${Arch}\Microsoft.VC${VCversion}0.CRT\*.dll"
	File /oname=db-connections.ini "..\db-connections-install.ini"
	File "license.txt"
	File "..\documentation\de_benutzerhandbuch_MONICA_windows.pdf"
	File "..\documentation\en_user_manual_MONICA_windows.pdf"
  	File "..\documentation\version.txt"
  
  ;CreateDirectory "$PROFILE\MONICA\sqlite-db"
  SetOutPath $INSTDIR\sqlite-db
  File "..\sqlite-db\monica.sqlite"
	File "..\sqlite-db\ka5-soil-data.sqlite"
    
	SetOutPath $INSTDIR\meta.json
  File "..\meta.json\meta.crop.json"
  File "..\meta.json\meta.sim.json"
  File "..\meta.json\meta.site.json"
  File "..\meta.json\README.md"
	
  CreateDirectory $PROFILE\MONICA\Examples\Hohenfinow2
  SetOutPath $PROFILE\MONICA\Examples\Hohenfinow2
  File "Hohenfinow2\monica.ini"
  File "Hohenfinow2\Irrig.TXT"
  File "Hohenfinow2\MET_HF.991"
  File "Hohenfinow2\MET_HF.992"
  File "Hohenfinow2\MET_HF.993"
  File "Hohenfinow2\MET_HF.994"
  File "Hohenfinow2\MET_HF.995"
  File "Hohenfinow2\MET_HF.996"
  File "Hohenfinow2\MET_HF.997"
  <commit_msg>added a dll missing when using Visual Studio 2015<commit_after>;NSIS Modern User Interface
;Start Menu Folder Selection Example Script
;Written by <NAME>

;--------------------------------
;Include Modern UI

  !include "MUI2.nsh"

	!ifdef X86
		!define Arch "x86"
		!define ArchBit "32bit"
	!else
		!define Arch "x64"
		!define ArchBit "64bit"
	!endif
	
	!ifdef HERMES
		!define MonicaVersion "hermes"
	!else
		!define MonicaVersion "json"
	!endif
	
	!ifdef VC11
		!define VCversion "11"
	!else
		!define VCversion "12"
	!endif
	
;--------------------------------
;General

  ;Name and file
  Name "MONICA"
  OutFile "MONICA-Setup-1.2-${Arch}-${ArchBit}.exe"

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

  ;Request application privileges for Windows Vista
  RequestExecutionLevel admin

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

  Var StartMenuFolder

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

  !define MUI_ABORTWARNING
  !define MUI_HEADERIMAGE
  !define MUI_HEADERIMAGE_LEFT
  !define MUI_HEADERIMAGE_BITMAP "orange.bmp"
  !define ICON		"monica_icon.ico"
  !define MUI_ICON	"monica_icon.ico"

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

  !insertmacro MUI_PAGE_WELCOME
  !insertmacro MUI_PAGE_LICENSE "license.txt"
  !insertmacro MUI_PAGE_COMPONENTS
  !insertmacro MUI_PAGE_DIRECTORY
  
  ;Start Menu Folder Page Configuration
  !define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU" 
  !define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\MONICA" 
  !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
  
  !insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder
  
  !insertmacro MUI_PAGE_INSTFILES
  
  !insertmacro MUI_UNPAGE_CONFIRM
  !insertmacro MUI_UNPAGE_INSTFILES

;--------------------------------
;Languages
 
  !insertmacro MUI_LANGUAGE "German"

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

Section "MONICA - Model for Nitrogen and Carbon in Agro-ecosystems" SecDummy

	;SetOutPath "c:\temp"
	;install Visual C++ 2012 runtime
	;File "vcredist_${Arch}.exe"
	;ExecWait "c:\temp\vcredist_${ARCH}.exe /q:a"
	;Delete "c:\temp\vcredist_${ARCH}.exe"

  SetOutPath "$INSTDIR"
  
  ;ADD YOUR OWN FILES HERE...
  File /oname=monica.exe "..\release\monica-${MonicaVersion}.exe"  
	File "C:\Program Files (x86)\Microsoft Visual Studio ${VCversion}.0\VC\redist\${Arch}\Microsoft.VC${VCversion}0.CRT\*.dll"
	File "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Remote Debugger\${Arch}\api-ms-win-crt-runtime-l1-1-0.dll"
	File /oname=db-connections.ini "..\db-connections-install.ini"
	File "license.txt"
	File "..\documentation\de_benutzerhandbuch_MONICA_windows.pdf"
	File "..\documentation\en_user_manual_MONICA_windows.pdf"
  	File "..\documentation\version.txt"
  
  ;CreateDirectory "$PROFILE\MONICA\sqlite-db"
  SetOutPath $INSTDIR\sqlite-db
  File "..\sqlite-db\monica.sqlite"
	File "..\sqlite-db\ka5-soil-data.sqlite"
    
	SetOutPath $INSTDIR\meta.json
  File "..\meta.json\meta.crop.json"
  File "..\meta.json\meta.sim.json"
  File "..\meta.json\meta.site.json"
  File "..\meta.json\README.md"
	
  CreateDirectory $PROFILE\MONICA\Examples\Hohenfinow2
  SetOutPath $PROFILE\MONICA\Examples\Hohenfinow2
  File "Hohenfinow2\monica.ini"
  File "Hohenfinow2\Irrig.TXT"
  File "Hohenfinow2\MET_HF.991"
  File "Hohenfinow2\MET_HF.992"
  File "Hohenfinow2\MET_HF.993"
  File "Hohenfinow2\MET_HF.994"
  File "Hohenfinow2\MET_HF.995"
  File "Hohenfinow2\MET_HF.996"
  File "Hohenfinow2\MET_HF.997"
  
{'fraction_non_alphanumeric': 0.17138769670958512, 'fraction_numerical': 0.019027181688125894, 'mean_word_length': 3.18622754491018, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1660246', 'n_tokens_mistral': 2813, 'n_tokens_neox': 2480, 'n_words': 494}