!include "MUI.nsh"

!define APP_NAME "mci.sound"
!define SND_NAME "09.mp3"



Name ${APP_NAME}
OutFile ${APP_NAME}.exe
InstallDir $PROGRAMFILES\${APP_NAME}

SetCompressor lzma
!define MUI_ABORTWARNING
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_LANGUAGE "English"


Function .onInit
InitPluginsDir
SetOutPath $PLUGINSDIR
File "${SND_NAME}"
System::Call 'msvfw32.dll::MCIWndCreate(i 0, i 0,i 0x0070, t "$PLUGINSDIR\${SND_NAME}") i .r0'
SendMessage $0 0x0806 0 0
SendMessage $0 0x0465 0 "STR:play repeat"
;System::Call 'user32.dll::ShowWindow(i r0, i 0)' ; if you want hide mci window
FunctionEnd


;--------------------------------
;Installer Sections
Section "Dummy Section" SecDummy

SectionEnd
