Hi
I am trying to build an installer that executes a SQL script which gets its data from text files. I have added the script and the text files to the project, but it fails when it can't find the files.
Is there a way to use the Script Replacements function to replace the existing file path with a property like APPDIR or SourceDir? I am not sure what property to use to get to the text file location. The project is archiving using LZMA compression.
For instance, the sql script will look like the following:
TRUNCATE TABLE monograph;
Load Data INFILE 'C:/SQLDBGenerator/monographs.txt' INTO TABLE monograph CHARACTER SET LATIN1 FIELDS TERMINATED BY '|' LINES TERMINATED BY '\r\n' (monographid,class) ;
How can I replace the 'C:/SQLDBGenerator/' with the actual path to the data text files?
thanks
Bryan
FOLLOW US
Get the latest news in Application Packaging