Is there some way to solve the problem ?
part codes of my script
!define MUI_CUSTOMFUNCTION_GUIINIT mOnguiinit
!include "MUI2.nsh"
!include "InstallOptions.nsh"
Function .onInit
/*
Banner::show
Banner::getWindow
Pop $1
again:
IntOp $0 $0 + 1
Sleep 1
StrCmp $0 100 0 again
GetDlgItem $2 $1 1030
;SendMessage $2 ${WM_SETTEXT} 0 "STR:Calculating more important stuff..."
again2:
IntOp $0 $0 + 1
Sleep 1
StrCmp $0 200 0 again2
Banner::destroy
*/
System::Call /NOUNLOAD "Kernel32::GetSystemDefaultLangID(v ..) i .s"
Pop $0
IntOp $LANGUAGE $0 & 0xFFFF
IntCmp $LANGUAGE 2052 label_1 ;sch
StrCpy $LANGUAGE 1033 ;en
label_1:
System::Call /NOUNLOAD "kernel32::CreateMutex(i 0, i 0, t $\"mutex_amcft$\") i .r1 ?e"
Pop $R0
StrCmp $R0 0 +3
MessageBox MB_OK|MB_TOPMOST $(LSTR_97)
Abort
lable_2:
;TODO😛robably need notify users close maya or 3dmax ,if they are running
;Call func_0
FunctionEnd
Function mOnguiinit
InitPluginsDir
SetOverwrite try
!insertmacro INSTALLOPTIONS_EXTRACT_AS "E:\works\installer4ac\Animecraft_Installer\Animecraft_Installer\$PLUGINSDIR\ioSpecial.ini" "ioSpecial.ini"
;!insertmacro INSTALLOPTIONS_EXTRACT_AS "E:\works\installer4ac\Animecraft_Installer\Animecraft_Installer\$PLUGINSDIR\modern-wizard.bmp" "modern-wizard.bmp"
File "/oname=$PLUGINSDIR\modern-wizard.bmp" "E:\works\installer4ac\Animecraft_Installer\Animecraft_Installer\$PLUGINSDIR\modern-wizard.bmp"
WriteINIStr "$PLUGINSDIR\ioSpecial.ini" "Field 1" "Text" "$PLUGINSDIR\modern-wizard.bmp"
FunctionEnd