Thank you for the provided resources.
I indeed managed to reproduce the issue.
At first, when I manually tried running the query, it gave an error, as the "CREATE TABLE" statement should look like this:
not like this:
After I fixed that, I managed to manually run the query:
However, it still failed when ran from Advanced Installer.
Unfortunately, I can not say for sure why this is happening. I have forwarded this to our dev team for further investigations and I will update this thread as soon as I will have a conclusive answer.