PDA

View Full Version : $IA_PROJECT_DIR$ value is null



amusku
01-30-2008, 04:58 AM
Hi,
I am trying to use the variable $IA_PROJECT_DIR$ in CopyFile Action (Install task) where I am giving the target file name relative to $IA_PROJECT_DIR$, but the value returned by this variable is null. I tried printing this variable value on the console also, shows the null value. Could you please help me on this.
My whole Idea is to use relative paths for all target files (in Copy file, Speed folder actions) and that should be relative to my project file location.

Regards,
Ajaykumar Musku.

pv7721
01-30-2008, 05:26 AM
Normally this value can't be null. Have you enabled Source Paths for your projects?

amusku
01-30-2008, 08:21 AM
I enabled the source path form ProjectDesigner-->edit--->preferences---->SourcePaths tab
But when I use this variable in preInstall task I am getting null value. can you please verify this at your end.

Regards,
Ajaykumar.

pv7721
01-30-2008, 08:37 AM
I think this is supposed to be used mostly in the Install task. Would it be possible for you to post your project?

purcellk24
01-30-2008, 08:45 AM
$IA_PROJECT_DIR$ is not available at runtime as a variable.

Can you post your project, or a sample project?