<commit_before>!include MUI2.nsh
!include "FileFunc.nsh"

Name "Modern Minas Setup"
OutFile "..\Application Files\mmlaunch_${VERSION}\setup.exe"
RequestExecutionLevel user
InstallDir $APPDATA\.modernminas\launcher
BrandingText "http://www.modernminas.de/"
SetCompressor /SOLID lzma
SetCompress force
XPStyle on

;;;;;;;;;;;;;;;
; Definitions
;;;;;;;;;;;;;;;

!ifndef CONFIGURATION
!define CONFIGURATION "Release"
;!define CONFIGURATION "Debug"
!endif
!ifndef SOURCE_BINPATH
!define SOURCE_BINPATH "..\launcher\bin\${CONFIGURATION}\"
;!define SOURCE_BINPATH "..\Application Files\mmlaunch_${VERSION}\"
!endif
!ifndef SOURCE_ROOT
!define SOURCE_ROOT ".."
!endif
!define MUI_CUSTOMFUNCTION_GUIINIT onGUIInit
!define MUI_ICON "..\launcher\Images\MMsymbol.ico"
!define MUI_UNICON "..\launcher\Images\MMsymbol.ico"
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP images\Header\nsis.bmp
!define MUI_HEADERIMAGE_UNBITMAP images\Header\nsis.bmp
!define MUI_HEADER_TRANSPARENT_TEXT
!define MUI_WELCOMEFINISHPAGE_BITMAP images\Wizard\win.bmp
!define MUI_UNWELCOMEFINISHPAGE_BITMAP images\Wizard\win.bmp
!define MUI_INSTFILESPAGE_PROGRESSBAR colored
;!define MUI_FINISHPAGE_NOAUTOCLOSE
;!define MUI_FINISHPAGE_RUN
;!define MUI_FINISHPAGE_RUN_TEXT "Run launcher"
;!define MUI_FINISHPAGE_RUN_FUNCTION "Launch"

;;;;;;;;;;;;;
; Sections
;;;;;;;;;;;;;

Section "Install"
	SetOutPath $INSTDIR
	
	ExecWait "taskkill /F /IM mmlaunch.exe"
	<commit_msg>Setup: Hide console window while taskkill runs.<commit_after>!include MUI2.nsh
!include "FileFunc.nsh"

Name "Modern Minas Setup"
OutFile "..\Application Files\mmlaunch_${VERSION}\setup.exe"
RequestExecutionLevel user
InstallDir $APPDATA\.modernminas\launcher
BrandingText "http://www.modernminas.de/"
SetCompressor /SOLID lzma
SetCompress force
XPStyle on

;;;;;;;;;;;;;;;
; Definitions
;;;;;;;;;;;;;;;

!ifndef CONFIGURATION
!define CONFIGURATION "Release"
;!define CONFIGURATION "Debug"
!endif
!ifndef SOURCE_BINPATH
!define SOURCE_BINPATH "..\launcher\bin\${CONFIGURATION}\"
;!define SOURCE_BINPATH "..\Application Files\mmlaunch_${VERSION}\"
!endif
!ifndef SOURCE_ROOT
!define SOURCE_ROOT ".."
!endif
!define MUI_CUSTOMFUNCTION_GUIINIT onGUIInit
!define MUI_ICON "..\launcher\Images\MMsymbol.ico"
!define MUI_UNICON "..\launcher\Images\MMsymbol.ico"
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP images\Header\nsis.bmp
!define MUI_HEADERIMAGE_UNBITMAP images\Header\nsis.bmp
!define MUI_HEADER_TRANSPARENT_TEXT
!define MUI_WELCOMEFINISHPAGE_BITMAP images\Wizard\win.bmp
!define MUI_UNWELCOMEFINISHPAGE_BITMAP images\Wizard\win.bmp
!define MUI_INSTFILESPAGE_PROGRESSBAR colored
;!define MUI_FINISHPAGE_NOAUTOCLOSE
;!define MUI_FINISHPAGE_RUN
;!define MUI_FINISHPAGE_RUN_TEXT "Run launcher"
;!define MUI_FINISHPAGE_RUN_FUNCTION "Launch"

;;;;;;;;;;;;;
; Sections
;;;;;;;;;;;;;

Section "Install"
	SetOutPath $INSTDIR
	
	nsExec::ExecToLog "taskkill /F /IM mmlaunch.exe"
	
{'fraction_non_alphanumeric': 0.13351591920575145, 'fraction_numerical': 0.0006846970215679561, 'mean_word_length': 7.301136363636363, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6571958', 'n_tokens_mistral': 1138, 'n_tokens_neox': 1065, 'n_words': 202}