Support Files

Got a problem you cannot solve? Try here.
seanmckenna
Posts: 46
Joined: Tue Aug 22, 2006 9:16 am
Location: NorthEast, USA
Contact:

Support Files

Postby seanmckenna » Wed Aug 30, 2006 9:18 am

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.

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Wed Aug 30, 2006 3:02 pm

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.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

seanmckenna
Posts: 46
Joined: Tue Aug 22, 2006 9:16 am
Location: NorthEast, USA
Contact:

Postby seanmckenna » Wed Aug 30, 2006 9:59 pm

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.


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 46 guests