A question regarding File
If I use File like this,
File $0
Here $0 is clearly defined as some existing file with full path. I confirm that by printing out $0. But I got an error "File: "$0" -> no files found.". What went wrong? Thanks.
Archive: A question regarding File
A question regarding File
If I use File like this,
File $0
Here $0 is clearly defined as some existing file with full path. I confirm that by printing out $0. But I got an error "File: "$0" -> no files found.". What went wrong? Thanks.
This is very basic stuff. File is a compile-time instruction and requires a file path that is valid at compile time. How can you give it a variable when the variable's value is only determined at run-time? It is logically impossible.
Edit: If you are trying to copy files rather than compress them into the installer executable, use CopyFiles.
Edit #2: If you want to extract as a file name/path stored in a variable, use "/oname=$0". The manual clearly demonstrates this.
Stu