Skip to content
⌘ NSIS Forum Archive

Specify directory as the base for the File command

3 posts

speedwell#

Specify directory as the base for the File command

Seems like this ought to be easy but I've been unable to figure it out by trial and error or searching here/docs.

I'd like to be able to specify a base source directory so that subsequent File commands grab files relative to it. E.G.

FileBase "..\..\Release\"
File app.exe

I also tried using a variable in front of all my File commands but that didn't work either.

Can this be done?

Thanks.
Red Wine#
You need to use !define for this to work. Discussed recently here,
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.