;NSIS Ultra Modern User Interface
;Basic Example Script
;Originally Written by Joost Verburg
;--------------------------------

Function .onGUIInit
	# the plugins dir is automatically deleted when the installer exits
	InitPluginsDir
	File /oname=$PLUGINSDIR\splash.bmp "${NSISDIR}\Contrib\Graphics\Wizard\orange-nsis.bmp"
	#optional
	#File /oname=$PLUGINSDIR\splash.wav "C:\myprog\sound.wav"

	splash::show 1000 $PLUGINSDIR\splash

	Pop $0 ; $0 has '1' if the user closed the splash screen early,
			; '0' if everything closed normally, and '-1' if some error occurred.
FunctionEnd

Section
SectionEnd
;--------------------------------
;General

  ;Name and file
  Name "Test"
  OutFile "1_test.exe"
!define PRODUCT_VERSION "1.0"
!define PRODUCT_PUBLISHER "Lukas"
!define PRODUCT_WEB_SITE "http://www."


  ;Default installation folder
  InstallDir "c:\Game\"

  
;--------------------------------
;Include UltraModernUI

  !include "UMUI.nsh"
;  !include "MUI2.nsh"

;--------------------------------
;Interface Settings

 !define UMUI_SKIN "gray2"
 !define UMUI_BGSKIN "blue"
 
 !define MUI_CUSTOMFUNCTION_GUIINIT 
 !define UMUI_USE_INSTALLOPTIONSEX
 
 !define MUI_ABORTWARNING
 !define MUI_UNABORTWARNING
 
	!define UMUI_PAGEBGIMAGE
	!define UMUI_UNPAGEBGIMAGE
	
	
;--------------------------------
;Pages

  !insertmacro UMUI_PAGE_MULTILANGUAGE
  !insertmacro MUI_PAGE_WELCOME
  !define UMUI_INFORMATIONPAGE_USE_RICHTEXTFORMAT
  !insertmacro UMUI_PAGE_INFORMATION "${NSISDIR}\Docs\UltraModernUI\new1045.txt"
;  !insertmacro UMUI_PAGE_INFORMATION "${NSISDIR}\Docs\UltraModernUI\License.txt"
  !insertmacro MUI_PAGE_LICENSE "c:\Licencja.txt"
  !insertmacro MUI_PAGE_DIRECTORY
  !insertmacro MUI_UNPAGE_CONFIRM
  !insertmacro MUI_PAGE_INSTFILES
 
;--------------------------------
;Languages
 
 ; first language is the default language if the system language is not in this list
  !insertmacro MUI_LANGUAGE "English"

; Other UMUI translated languages
  !insertmacro MUI_LANGUAGE "Polish"
  
  ;-------------------------------- 
;Descriptions

  ;Language strings
  LangString DESC_SecDummy ${LANG_ENGLISH} "A test section."

  ;Assign language strings to sections
  !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
    !insertmacro MUI_DESCRIPTION_TEXT ${SecDummy} $(DESC_SecDummy)
  !insertmacro MUI_FUNCTION_DESCRIPTION_END

;--------------------------------
;Uninstaller Section

Section "Uninstall"

  ;ADD YOUR OWN FILES HERE...

  Delete "$INSTDIR\Uninstall.exe"

SectionEnd

;--------------------------------
;Installer Functions

Function .onInit
  !insertmacro UMUI_MULTILANG_GET
FunctionEnd

;--------------------------------
;Uninstaller Functions

Function un.onInit
  !insertmacro UMUI_MULTILANG_GET
FunctionEnd

