;---------------------
;Include Modern UI

  !include "MUI.nsh"
  !include "LogicLib.nsh"
	!include "Sections.nsh"

;--------------------------------
;General

  ;Name and file
  Name "Test"
  OutFile "test.exe"

  ;Default installation folder
  InstallDir "$PROGRAMFILES\Modern UI Test"
  
  ;Get installation folder from registry if available
  InstallDirRegKey HKCU "Software\Modern UI Test" ""

;--------------------------------
;Pages

  !insertmacro MUI_PAGE_COMPONENTS
  !insertmacro MUI_PAGE_DIRECTORY
  !insertmacro MUI_PAGE_INSTFILES
 
;--------------------------------
;Languages
 
  !insertmacro MUI_LANGUAGE "English"
  !insertmacro MUI_LANGUAGE "German"

;--------------------------------
;Variables

;  Var "tmp"
;--------------------------------
;Installer Sections

Section Main SecMain

SectionEnd

Section /o "Deutsch" SecGerman

SectionEnd

Section /o "English" SecEnglish

SectionEnd

;--------------------------------
;Installer Functions

Function .onInit

  !insertmacro MUI_LANGDLL_DISPLAY
  
  ${Switch} $LANGUAGE
	${Case} ${LANG_ENGLISH}
	   !insertmacro SelectSection ${SecEnglish}
	${Break}
	${Case} ${LANG_GERMAN}
	   !insertmacro SelectSection ${SecGerman}
	${Break}
	${EndSwitch}

FunctionEnd

