$SUPPORTDIR$ not recognised

Got a problem you cannot solve? Try here.
Post Reply
serk
Posts: 6
Joined: Wed Jun 04, 2008 5:57 am
Location: Germany

$SUPPORTDIR$ not recognised

Post by serk »

Hello,
I am trying to build my installation from the Installaware IDE. I have added some files as support files and in my installation I want to install these files to the TARGETDIR with the following code

Install Files $SUPPORTDIR$\\ABC.exe to $TARGETDIR$ but I receive a compiler error

Error during build: No files matching pattern "$SUPPORTDIR$\\ABC.exe"
even if the file is shown in the Support Files. If I give absolute path of the file the problem is solved. What can be the reason to this?
Thanks a lot.
Serhan
jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Post by jimo »

SUPPORTDIR is a RUNTIME variable!

This variable is not available at COMPILE time.

Support files are temporary files meant to be used during INSTALLATION at RUNTIME.
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com
serk
Posts: 6
Joined: Wed Jun 04, 2008 5:57 am
Location: Germany

Post by serk »

Hi Jim,
Thanks for the reply.. In my code I use $SUPPORTDIR$ in the following way.

Read from Text File $SUPPORTDIR$\\installer_data.txt into Variable ServiceName

and I dont have any compiler error from this line. What is the difference between this line and the one in the above post where I get the compiler error?

Serhan
jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Post by jimo »

Read from Text File $SUPPORTDIR$\\installer_data.txt into Variable ServiceName is only used at RUNTIME, Install Files command is used during COMPILE to package the file so it has to find it to package it and SUPPORTDIR is only available at RUNTIME.
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com
Post Reply