Results 1 to 4 of 4

Thread: Change output [EXENAME] dynamically

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Change output [EXENAME] dynamically

    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
    Attached Images Attached Images     

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •