The BUILD_NUMBER env var is standard with Jenkins. I have used it in calls to windows bat files with no problem.
The issue seems to be in the Advanced Options/additional commands area. It does not convert the BUILD_NUMBER variable.

Using SetVersion with a value like "1.0.5" works fine
as does creating a parameter in the Jenkins job and using it. Its just directly using the BUILD_NUMBER provided by Jenkins that does not.

I actually have the same problem in the UI sections of Jenkins so I have posted with them as well. It may not be specific to
Advanced Installer, just wanted to see if anyone ran into this and has a solution.