Announcement

Collapse
No announcement yet.

Build.ini constants

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Build.ini constants

    I have a build.ini file with the following constants
    ------------------------------------------
    [constants]
    #OUTPUTDIR#=D:\DEVELOP\RELEASE
    #SETUPNAME#=In_install_v4.1.2.exe
    ------------------------------------------

    According to the log, the constants are being picked up ok.
    ------------------------------------------
    > Constant set: #OUTPUTDIR# = D:\DEVELOP\RELEASE
    > Constant set: #SETUPNAME# = In_install_v4.1.2.exe
    > Constant set: _VER_MAIN = 4.1.2
    ------------------------------------------

    I'm guessing I'm going about this the wrong way. The output is not directed to this folder, nor is the output file name set from the constants.

    Any help appreciated

    Ron

  • #2
    Are you actually using #OUTPUTDIR# and #SETUPNAME# in the Publish settings, for the active build configuration? Also, were these constants previously defined on the Constants tab?
    Click image for larger version

Name:	SCRN-2014-11-14-02.png
Views:	1
Size:	121.2 KB
ID:	284255
    /CONST:<<ini file path>>
    Lets you specify an INI file that contains design-time constants to override the ones in the project. You can define as many design-time constants as you want in the INI file, with each constant on a separate line beneath the [Constants] section. Each constant that is defined in the INI file must already be defined in the project file.
    Ulrich

    Comment


    • #3
      thanks Ulrich.
      I thought these two constants were predefined. All working now ... thanks !

      Comment

      Working...
      X