Page 1 of 1

Support Files

Posted: Wed Aug 30, 2006 9:18 am
by seanmckenna
My project is having trouble finding a support file which I added in the IDE. When I added the support file, I was working on the project on my development machine. The support file exits in a folder one level up from where my project files are.

Now, I am building my project on a buildmachine, where the folder names are a bit different. I have changed all of my file paths (using refactor paths) to use a compiler variable to account for different folder names. But I am unsure how to do this for Support Files.

On Second Thought, now that I look at the error message (from commandline build), it says that it can't find the support file, and it gives the location of the folder where my project files are. When I look on my development machine, this file does exist here.

Is InstallAware playing a trick on me and the IDE copies the support file to the project folder, then it references it from there?

I hope I explained clearly, Thanks.

Posted: Wed Aug 30, 2006 3:02 pm
by MichaelNesmith
Support Files may only be read from the project folder - this is where they are copied when added to a project for the first time.

You can use the File Bag plug-in as an alternate Support Files mechanism to reference files anywhere on the system, but do not use relative paths.

Posted: Wed Aug 30, 2006 9:59 pm
by seanmckenna
My fix for this is to manually add a copy command into my build script so that I copy each support file into the project directory. Its too bad I need to take this extra step, but I only have a few files, and as long as I don't add any, this will keep working.

The down side is ... what happens when someone other than myself starts working on this project? They won't know that if they add a support file, they need to also add something to the build script. To me, this seems like the source of a problem.

Oh well, I got my project building for now.