Carl,
my first idea was to use this built-in feature:
http://www.lindersoft.com/forums/sho...-Build-Numbers
But you are not using a "standard" version numbering format, so this can't be used here. It would create "Setup0.0.0.2.exe" instead of your "Setup002.exe" format.
Here is another possible method, but it does not fit your needs:
http://www.lindersoft.com/forums/sho...installer-name
By the way, your DLL technique did not work because %NEWBUILDNAME% is a runtime variable. This is only available when you run the setup.exe and is not valid when you compile a setup.exe.
I have developed a helper application with SetupBuilder for you. I have uploaded both the helper source code and the demo project to:
http://www.lindersoft.com/projects/A...ementSetup.zip
The non-elevated running helper application ("increment.exe") is called from your main project and auto increments the build number when you compile the project. The last build number is stored in the "build.txt" ASCII text file.
See attached screenshots.
1. Add the Lines 16-18 from the "setup_build_demo.sbp" project file to your main project.
2. Set the "Executable Name [EXENAME]" in your main project (General Information -> Product Properties) to setup[MY_SETUP_BUILD].exe
3. Copy the "increment.exe" helper application to the same folder where your main project .sbp file is located.
4. Compile your project.
Does this help?
Friedrich