Skip to content
⌘ NSIS Forum Archive

Macro function not seeing MUI_FILE

5 posts

jcagle#

Macro function not seeing MUI_FILE

I am trying to use $INSTDIR\${MUI_FILE} inside of a function. To be exact, I am attempting to use this within the InstallVB.nsh file where it is checking for the existence of a file...if you are familiar with that file. Any ideas why it's not seeing that variable? It sees the variable VBFILESDIR, but not MUI_FILE. Thanks in advance for any help!
Joost Verburg#
I don't know where you are talking about. MUI_FILE is not a MUI define. VBFILESDIR is probably a compile-time define.

Please attach the script and tell exactly what you are doing.

I also recommend you to read the tutorial in the NSIS Users Manual.
jcagle#
This works:
!define MUI_FILE "myprog.exe"
!include "${VBFILESDIR}\installVB.nsh"

but, this does not:
!include "${VBFILESDIR}\installVB.nsh"
!define MUI_FILE "myprog.exe"

Apparently, I need to define MUI_FILE before I include the .nsh

Thanks for you assistance.
Afrow UK#
Yes, if installVB.nsh uses the define (MUI_FILE) then the define needs to go before the file is called.

-Stu