I created a custom prerequisite. It should test whether a certain file is present in the APPDIR and install it if missing (file installed in a folder that is set to permanent so that it will not be removed at each reinstall of the installer package).
I have the following problem:
I created a new prerequisite and removed the "Continue even if not installed" tick.
I set a "Install Condition" with "Install prerequisite based on conditions" -> File Version "[APPDIR]permanentfolder\file.txt"
It seems as if the installer knows the [APPDIR] parameter only when verifying whether the prerequisite was correctly installed, but not when deciding whether to download and run the additional file. But that way it will always download my file even if it is already present. Can the behavior be changed so that I can use APPDIR at this stage too (I put the prerequsite under "Feature-based" package).