It’s not recommended to install the agent in a custom location. Doing so can break some functionality as there are hardcoded paths in various services that interact with the agent. While technically you can install it in a custom location on Windows using the graphical installer, it’s not a good idea and will cause you problems in the long run.
Sorry I can’t be more help here, but do let us know if you have any further questions.
Thanks for the confirmation and giving out an information on this.
I actually tried editing the .sh file to reflect my intended destination directory and it seems kind of rejected in the communication side of things when running the installation. So I think it really is not allowed.