Archive: Input files in different directory


Input files in different directory
Is there a way to add a directory to the directories from where the input files (*.exe, *.dll, etc) are read. That will be useful if the installer script file is in another directory than all the input files. Now I must reference the complete (absolute/relative) path within the FILE command. Isn't it possible to look in some predefined directories for these files, like the include headers? You could add an macro like !addincludedir perhaps with the name !addinputdir. That would be a great feature!

Thanks for any answers,
Konrad


Why not do:

!define InputDir "C:\my app"
!define File "!insertmacro AddFile"
!macro AddFile File
File "${InputDir}\${File}"
!macroend

Section MySection
SetOutPath $INSTDIR
${File} "File1.ext"
${File} "File2.ext"
${File} "File4.ext"
${File} "File8.ext"
SectionEnd


-Stu