jcagle
26th July 2003 16:49 UTC
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!
Joel
26th July 2003 16:54 UTC
Attach script dude...
Joost Verburg
26th July 2003 17:52 UTC
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
26th July 2003 20:54 UTC
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
26th July 2003 21:00 UTC
Yes, if installVB.nsh uses the define (MUI_FILE) then the define needs to go before the file is called.
-Stu