I'm doing XML according to this answer: http://answers.bitrock.com/questions/63/what-does-the-save-relative-paths-option-mean
I.e. I set the option "Save relative path" but when I save the project I can see that paths are absolute inside XML project file.
I've converted path manually from c:\repo\project\output\program.exe to ./output/program.exe. It works but I still have a problem. if a working directory when I run bulding (either from GUI or console) differs from c:\repo\project, the compiler couldn't convert paths. It adds the path of itself, I mean it convert the path to c:\program file\bitrock installer\bin\output\program.exe.
I.e. it doesn't set work directory to folder where project file is located. However I can live with this because I can run builder from right folder.
The second problem is critical. I wrote:
<preBuildActionList> ..... <runProgram> <program>output\\program2.exe</program> <programArguments></programArguments> </runProgram> ... </preBuildActionList>
And it couldn't run the program. The error message is:
Error: Unknown error while running output\program2.exe Error building project
It works if I specify absolute path only. But it won't work for me because we have many configurations where we build install packages. What can I do?
Please sign in to leave a comment.