Skip to content
⌘ NSIS Forum Archive

File Exists at compile time

2 posts

Deliverator#

File Exists at compile time

I found a thread 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.


but didn't quite understand it.

I'm trying to do the following.

The installer is set up for several clients. Most of the files are in a general directory. A few, if they are necessary are in a client specific directory. Some clients may need these specific files, others not. A !define tells the compiler which client the installer is being written for.

What I would like to do is, at compile time, if a file exists in a client specific directory, use it, otherwise get the file from a general directory.

Thanks.
Joost Verburg#
There is no need to start a new topic.

As has been said before, you have to create an application that writes a header file depending on the status of your files.