Hi,
I have been pondering on how to integrate a installer like NSIS into CB.
The approach to use a "tool" as describes in
this thread did not appeal to me since I want to build my workspace and just grab the installer from the output folder. I want my build process to be fully automated to reduce the human error and since it is a waste of human time.
As a result I used a post build step to do it. But the problem is if you put it on your project it the installer is built every time and this can be quite annoying. In addition I have multiple projects that feed into the installer so this approach is a bit flawed.
Finally I use a separate project for the installer. I created a empty project and configured it as console project. I added the nsi file to the project and nothing else. I use the following post build step.
$(#nsis)\makensis $(TARGET_OUTPUT_BASENAME).nsi
xcopy /Y $(TARGET_OUTPUT_BASENAME).exe $(TARGET_OUTPUT_DIR)
Now I can build the workspace have the installer ready. I even can run the installer form CB...
Any comments are welcome on the approach.
I am coming from the GNU Autotools, they are the superior build tools, but CB is just more efficient all in all... The only thing is that I am struggling to get certain things to work as I would like.