Skip to content
⌘ NSIS Forum Archive

How to add files dynamically

4 posts

jogijhelumi#

How to add files dynamically

Hi;

Is it possible to dynamically add files to the installer rather than hard-coding.
e.g.
StrCpy $0 "abc.xyz"
File $0
I've tried it but getting error. Is there any workaround. The solution given in
One Installer with Different Installation Files Each Time
is not fulfilling my requirement.

Thanks
jogijhelumi#
Can anyone tell me, why the compiler generates error (i.e. File: "$0$1" -> no files found.) for following code.

StrCpy $0 "/testing/"
StrCpy $1 "abc.xyz"
${Package} $0 $1

!macro Package FilePath FileName
File "${FilePath}${FileName}"
!macroend
!define Package "!insertmacro Package "